Skip to content

qualcomm/snapdragon-compute-samples

Snapdragon Compute Sample Apps

This repository contains sample apps for running ONNX models efficiently using ONNX Runtime, specifically targeting Qualcomm Hexagon NPU with QNN Execution Provider

Table of Contents

  1. Available Apps
  2. Project Status
  3. Getting Started
  4. Quick Start
  5. Contributing
  6. Directory Structure
  7. License

Available Apps

App Name Model Used Providers Quick Start Notebook Notes
'HRNet Pose Detection' HRNetPose CPU Complete Complete None
'DeepSeek Local' DeepSeek QNN Complete Complete None

These apps demonstrate end-to-end inference using ONNX Runtime on devices with Hexagon NPUs. Each app includes:

  • Input preprocessing
  • Onnx model inference
  • Output postprocessing

Supported features:

  • CPU fallback (if you don't have access to Hexagon NPU)
  • Hexagon QNN Execution

Getting Started

General Requirements

1. Clone the Repository

>> git clone https://github.com/qualcomm/snapdragon-compute-samples.git

2. Setup Virtual Environment

>> python -m venv venv
>> venv\Scripts\activate.ps1 # Linux: >> source venv/bin/activate
>> pip install -r \src\<App Name>\requirements.txt # Ex: pip install -r \src\deepseek_r1\requirements.txt

3. Download Models

Model Name Description Download Source
HRNetPose Human pose estimation AI Hub
DeepSeek R1 Reasoning Language Model s3 Bucket

4. Run models.py

models.py will automatically place models in appropriate destination

>> python models.py --model_directory (absolute path to directory where models were downloaded)

Quick Start

App Name CLI Command
'HRNet Pose Detection' >> python ./src/hrnet_pose/main.py
'DeepSeek Local' >> python ./src/deepseek_r1/main.py

Contributing

We welcome contributions to this repository! Please refer to our contributing guide for how to contribute.

Directory Structure

License

This project is licensed under the MIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •