Run an Arm AI Portal depth estimation model on Android
Who is this for?
This Learning Path is for Android and machine learning developers who want to run monocular depth estimation locally on an Arm-based Android phone.
What will you learn?
Upon completion of this Learning Path, you will be able to:
- Prepare the Android command-line tools and connect an Arm-based Android phone.
- Download and run the Depth Anything V2 Small INT8 ExecuTorch model from the Arm AI Portal.
- Inspect the model's fixed image preprocessing and relative-disparity output.
- Validate input-dependent relative-disparity maps across two images.
Prerequisites
Before starting, you will need the following:
- A macOS, x86_64 Linux, or Windows development computer with Git, Python 3 with
venvandpip, and JDK 17 or later - An Arm-based Android phone running Android 9 or later
- A Hugging Face account if the model repository requires authentication
- A data-capable USB cable
- Homebrew on macOS,
curlon Linux, orwingeton Windows to install Android CLI - Network access for the first Gradle build and model download
- Basic familiarity with terminal commands and Android applications
Summary
This summary was drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
Frequently asked questions
These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.
adb devices -l and confirm that your phone is listed as device. If you see unauthorized, unlock your phone and accept the debugging prompt. On Windows, you might also need the manufacturer’s USB driver.depth_anything_v2_small_executorch_optimized.pte into model/$MODEL_ID. Then, use adb push to copy it through /data/local/tmp and run-as to place it at files/models/$MODEL_ID/$MODEL_FILE in application-private storage. Verify the destination with run-as ... ls -l, then remove the temporary device copy.adb shell am start -n com.arm.learningpath.imagetoimage/.ui.MainActivity. In the app, select Depth Anything V2 Small INT8, select Load model, choose a JPEG or PNG image, and then select Run depth estimation.