Skip to main content

Depth-Anything Example

This document describes how to use the QAI AppBuilder Python API to run inference with the Depth-Anything depth estimation model on Qualcomm® Hexagon™ Processor (NPU).

Supported devices

DeviceSoC
Fogwise® AIRbox Q900QCS9075

Install QAI AppBuilder

tip
  1. Install QAI AppBuilder by following the QAI AppBuilder installation guide.

  2. Configure ADSP environment variables as described in Create ADSP environment variables.

Run the sample

Install dependencies

Install sample dependencies in the activated virtual environment:

Device
pip3 install requests tqdm qai-hub py3-wget Pillow torch torchvision opencv-python-headless matplotlib

Run the script

  • Enter the upstream samples directory

    Device
    cd qai-appbuilder/samples
  • Prepare input data (use the sample input if provided, or pass script arguments)

input image

  • Run inference

    Device
    python3 ComputerVision/Depth_Estimation/depth_anything/depth_anything.py --chipset 9075
  • Example result

output image

tip

The first run downloads the model via Qualcomm® AI Hub (network-dependent). You can also use the launcher from samples:

python3 run_inference.py --list
python3 run_inference.py --model depth_anything --args "--chipset 9075"

    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