File size: 6,117 Bytes
6c7aece
 
 
 
c8b7f48
6c7aece
 
 
 
 
 
 
 
17b449d
6c7aece
 
 
17b449d
1e043c5
17b449d
 
 
 
 
1e043c5
17b449d
 
 
 
1e043c5
17b449d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ad0c7ca
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6c7aece
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
---
library_name: pytorch
license: other
tags:
- bu_auto
- real_time
- android
pipeline_tag: object-detection

---

![](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/yolor/web-assets/model_demo.png)

# Yolo-R: Optimized for Qualcomm Devices

YoloR is a machine learning model that predicts bounding boxes and classes of objects in an image.

This is based on the implementation of Yolo-R found [here](https://github.com/WongKinYiu/yolor.git).
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/yolor) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).

Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) to run these models on a hosted Qualcomm® device.

## Getting Started
Due to licensing restrictions, we cannot distribute pre-exported model assets for this model.
Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/yolor) Python library to compile and export the model with your own:
- Custom weights (e.g., fine-tuned checkpoints)
- Custom input shapes
- Target device and runtime configurations

See our repository for [Yolo-R on GitHub](https://github.com/qualcomm/ai-hub-models/blob/main/src/qai_hub_models/models/yolor) for usage instructions.


## Model Details

**Model Type:** Model_use_case.object_detection

**Model Stats:**
- Model checkpoint: yolor_p6
- Input resolution: 640x640
- Number of parameters: 4.68M
- Model size (float): 17.9 MB

## Performance Summary
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
|---|---|---|---|---|---|---
| Yolo-R | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 26.831 ms | 6 - 317 MB | NPU
| Yolo-R | ONNX | float | Snapdragon® X2 Elite | 26.317 ms | 75 - 75 MB | NPU
| Yolo-R | ONNX | float | Snapdragon® X Elite | 58.027 ms | 74 - 74 MB | NPU
| Yolo-R | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 42.086 ms | 3 - 350 MB | NPU
| Yolo-R | ONNX | float | Qualcomm® QCS8550 (Proxy) | 55.271 ms | 0 - 79 MB | NPU
| Yolo-R | ONNX | float | Qualcomm® QCS9075 | 52.914 ms | 5 - 12 MB | NPU
| Yolo-R | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 37.053 ms | 3 - 225 MB | NPU
| Yolo-R | ONNX | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 18.077 ms | 3 - 437 MB | NPU
| Yolo-R | ONNX | w8a16 | Snapdragon® X2 Elite | 18.366 ms | 41 - 41 MB | NPU
| Yolo-R | ONNX | w8a16 | Snapdragon® X Elite | 30.452 ms | 40 - 40 MB | NPU
| Yolo-R | ONNX | w8a16 | Snapdragon® 8 Gen 3 Mobile | 21.1 ms | 0 - 484 MB | NPU
| Yolo-R | ONNX | w8a16 | Qualcomm® QCS6490 | 2312.799 ms | 127 - 140 MB | CPU
| Yolo-R | ONNX | w8a16 | Qualcomm® QCS8550 (Proxy) | 29.569 ms | 0 - 50 MB | NPU
| Yolo-R | ONNX | w8a16 | Qualcomm® QCS9075 | 29.381 ms | 1 - 6 MB | NPU
| Yolo-R | ONNX | w8a16 | Qualcomm® QCM6690 | 1175.834 ms | 131 - 148 MB | CPU
| Yolo-R | ONNX | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 17.133 ms | 1 - 372 MB | NPU
| Yolo-R | ONNX | w8a16 | Snapdragon® 7 Gen 4 Mobile | 1121.546 ms | 132 - 144 MB | CPU
| Yolo-R | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 14.056 ms | 5 - 296 MB | NPU
| Yolo-R | QNN_DLC | float | Snapdragon® X2 Elite | 15.16 ms | 5 - 5 MB | NPU
| Yolo-R | QNN_DLC | float | Snapdragon® X Elite | 29.373 ms | 5 - 5 MB | NPU
| Yolo-R | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 22.716 ms | 5 - 324 MB | NPU
| Yolo-R | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 100.159 ms | 0 - 252 MB | NPU
| Yolo-R | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 29.704 ms | 5 - 7 MB | NPU
| Yolo-R | QNN_DLC | float | Qualcomm® SA8775P | 36.154 ms | 1 - 260 MB | NPU
| Yolo-R | QNN_DLC | float | Qualcomm® QCS9075 | 37.31 ms | 5 - 11 MB | NPU
| Yolo-R | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 49.96 ms | 5 - 377 MB | NPU
| Yolo-R | QNN_DLC | float | Qualcomm® SA7255P | 100.159 ms | 0 - 252 MB | NPU
| Yolo-R | QNN_DLC | float | Qualcomm® SA8295P | 44.027 ms | 0 - 306 MB | NPU
| Yolo-R | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 18.433 ms | 0 - 229 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Snapdragon® 8 Elite Gen 5 Mobile | 7.29 ms | 2 - 303 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Snapdragon® X2 Elite | 8.333 ms | 2 - 2 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Snapdragon® X Elite | 18.972 ms | 2 - 2 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Snapdragon® 8 Gen 3 Mobile | 12.307 ms | 0 - 368 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Qualcomm® QCS6490 | 77.531 ms | 1 - 5 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Qualcomm® QCS8550 (Proxy) | 18.378 ms | 2 - 4 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Qualcomm® SA8775P | 18.336 ms | 0 - 289 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Qualcomm® QCS9075 | 20.48 ms | 0 - 5 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Qualcomm® QCM6690 | 234.681 ms | 2 - 400 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Qualcomm® QCS8450 (Proxy) | 24.66 ms | 2 - 369 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Qualcomm® SA8295P | 23.548 ms | 0 - 291 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Snapdragon® 8 Elite For Galaxy Mobile | 9.839 ms | 2 - 301 MB | NPU
| Yolo-R | QNN_DLC | w8a16 | Snapdragon® 7 Gen 4 Mobile | 26.209 ms | 2 - 312 MB | NPU

## License
* The license for the original implementation of Yolo-R can be found
  [here](https://github.com/WongKinYiu/yolor/blob/main/LICENSE).

## References
* [You Only Learn One Representation: Unified Network for Multiple Tasks](https://arxiv.org/abs/2105.04206)
* [Source Model Implementation](https://github.com/WongKinYiu/yolor.git)

## Community
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).