Skip to main content

Inception v3 Example

This document describes using the QAI AppBuilder Python API to run inference with the Inception-v3 image classification model on the Qualcomm® Hexagon™ Processor (NPU).

Supported devices

DeviceSoC
Dragon Q6AQCS6490
Dragon Q8BSC8280XP
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

Run the script

  • Enter the upstream samples directory

    Device
    cd qai-appbuilder/samples

Run inference (Linux requires --chipset; the sample ships with input.jpg)

tip

SC8280XP and QCS6490 both use Hexagon V68. Use --chipset 6490 when downloading models.

Device
python3 ComputerVision/Image_Classification/inception_v3/inception_v3.py --chipset 6490

Optional image path:

python3 ComputerVision/Image_Classification/inception_v3/inception_v3.py --chipset 6490 --image ComputerVision/Image_Classification/inception_v3/input.jpg

Expected result

On Dragon Q6A (--chipset 6490), the default input produces output similar to:

Top 5 predictions for image:

Samoyed 0.999714911
white wolf 0.0001396882
Arctic fox 0.0001165446
Pomeranian 0.000006424
Great Pyrenees 0.000006424

HTP / FastRPC WARNING lines may appear and can be ignored when inference succeeds.

tip

Launcher alternative:

python3 run_inference.py --model inception_v3 --args "--chipset 6490"

    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