Skip to main content

Depth-Anything-V2

This document explains how to run the Depth-Anything-V2 sample application on a host device equipped with the Radxa AICore AX-M1.

Precompiled model quantization format: w8a16.

Create a virtual environment

Host
python3 -m venv .venv && source .venv/bin/activate

Download the demo repository

Host
pip3 install -U "huggingface_hub"
hf download AXERA-TECH/Depth-Anything-V2 --local-dir ./Depth-Anything-V2
cd Depth-Anything-V2

Example usage

Install Python dependencies

Host
pip3 install argparse numpy opencv-python
pip3 install https://github.com/AXERA-TECH/pyaxengine/releases/download/0.1.3.rc1/axengine-0.1.3-py3-none-any.whl

Model inference

Host
python3 python/infer.py --model depth_anything_v2_vits_ax650.axmodel --img examples/demo01.jpg
(.venv) rock@rock-5b-plus:~/ssd/axera/Depth-Anything-V2$ python3 python/infer.py --model depth_anything_v2_vits_ax650.axmodel --img examples/demo01.jpg
[INFO] Available providers: ['AXCLRTExecutionProvider']
[INFO] Using provider: AXCLRTExecutionProvider
[INFO] SOC Name: AX650N
[INFO] VNPU type: VNPUType.DISABLED

depth-anything-v2 demo output

    You need to be logged into GitHub to post a comment. If you are already logged in, please ignore this message.

    Radxa-docs © 2026 by Radxa Computer (Shenzhen) Co.,Ltd. is licensed under CC BY 4.0