Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -18,7 +18,7 @@ tags:
|
|
| 18 |
|
| 19 |
ResNet50 is a machine learning model that can classify images from the Imagenet dataset. It can also be used as a backbone in building more complex models for specific use cases.
|
| 20 |
|
| 21 |
-
This model is an implementation of ResNet50 found [here](
|
| 22 |
This repository provides scripts to run ResNet50 on Qualcomm® devices.
|
| 23 |
More details on model performance across various devices, can be found
|
| 24 |
[here](https://aihub.qualcomm.com/models/resnet50).
|
|
@@ -33,15 +33,32 @@ More details on model performance across various devices, can be found
|
|
| 33 |
- Number of parameters: 25.5M
|
| 34 |
- Model size: 97.4 MB
|
| 35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
-
| Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 40 |
-
| ---|---|---|---|---|---|---|---|
|
| 41 |
-
| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | TFLite | 2.268 ms | 0 - 2 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite)
|
| 42 |
-
| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | QNN Model Library | 2.399 ms | 1 - 175 MB | FP16 | NPU | [ResNet50.so](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.so)
|
| 43 |
-
|
| 44 |
-
|
| 45 |
|
| 46 |
## Installation
|
| 47 |
|
|
@@ -96,16 +113,16 @@ device. This script does the following:
|
|
| 96 |
```bash
|
| 97 |
python -m qai_hub_models.models.resnet50.export
|
| 98 |
```
|
| 99 |
-
|
| 100 |
```
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
|
|
|
|
| 109 |
```
|
| 110 |
|
| 111 |
|
|
@@ -204,15 +221,19 @@ provides instructions on how to use the `.so` shared library in an Android appl
|
|
| 204 |
Get more details on ResNet50's performance across various devices [here](https://aihub.qualcomm.com/models/resnet50).
|
| 205 |
Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
|
| 206 |
|
|
|
|
| 207 |
## License
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
|
|
|
| 211 |
|
| 212 |
## References
|
| 213 |
* [Deep Residual Learning for Image Recognition](https://arxiv.org/abs/1512.03385)
|
| 214 |
* [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/resnet.py)
|
| 215 |
|
|
|
|
|
|
|
| 216 |
## Community
|
| 217 |
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
|
| 218 |
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|
|
|
|
| 18 |
|
| 19 |
ResNet50 is a machine learning model that can classify images from the Imagenet dataset. It can also be used as a backbone in building more complex models for specific use cases.
|
| 20 |
|
| 21 |
+
This model is an implementation of ResNet50 found [here]({source_repo}).
|
| 22 |
This repository provides scripts to run ResNet50 on Qualcomm® devices.
|
| 23 |
More details on model performance across various devices, can be found
|
| 24 |
[here](https://aihub.qualcomm.com/models/resnet50).
|
|
|
|
| 33 |
- Number of parameters: 25.5M
|
| 34 |
- Model size: 97.4 MB
|
| 35 |
|
| 36 |
+
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 37 |
+
|---|---|---|---|---|---|---|---|---|
|
| 38 |
+
| ResNet50 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 2.278 ms | 0 - 2 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
| 39 |
+
| ResNet50 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 2.384 ms | 1 - 174 MB | FP16 | NPU | [ResNet50.so](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.so) |
|
| 40 |
+
| ResNet50 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 2.347 ms | 1 - 2 MB | FP16 | NPU | [ResNet50.onnx](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.onnx) |
|
| 41 |
+
| ResNet50 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 1.785 ms | 0 - 76 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
| 42 |
+
| ResNet50 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 2.356 ms | 1 - 27 MB | FP16 | NPU | [ResNet50.so](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.so) |
|
| 43 |
+
| ResNet50 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 1.889 ms | 1 - 79 MB | FP16 | NPU | [ResNet50.onnx](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.onnx) |
|
| 44 |
+
| ResNet50 | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 2.253 ms | 0 - 691 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
| 45 |
+
| ResNet50 | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 2.157 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
|
| 46 |
+
| ResNet50 | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 2.273 ms | 0 - 2 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
| 47 |
+
| ResNet50 | SA8255 (Proxy) | SA8255P Proxy | QNN | 2.185 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
|
| 48 |
+
| ResNet50 | SA8775 (Proxy) | SA8775P Proxy | TFLITE | 2.277 ms | 0 - 3 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
| 49 |
+
| ResNet50 | SA8775 (Proxy) | SA8775P Proxy | QNN | 2.185 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
|
| 50 |
+
| ResNet50 | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 2.268 ms | 0 - 3 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
| 51 |
+
| ResNet50 | SA8650 (Proxy) | SA8650P Proxy | QNN | 2.179 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
|
| 52 |
+
| ResNet50 | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 3.097 ms | 0 - 65 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
| 53 |
+
| ResNet50 | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 3.127 ms | 1 - 20 MB | FP16 | NPU | Use Export Script |
|
| 54 |
+
| ResNet50 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 1.55 ms | 0 - 30 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
| 55 |
+
| ResNet50 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 1.669 ms | 0 - 23 MB | FP16 | NPU | Use Export Script |
|
| 56 |
+
| ResNet50 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 1.668 ms | 0 - 30 MB | FP16 | NPU | [ResNet50.onnx](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.onnx) |
|
| 57 |
+
| ResNet50 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 2.312 ms | 1 - 1 MB | FP16 | NPU | Use Export Script |
|
| 58 |
+
| ResNet50 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 2.328 ms | 50 - 50 MB | FP16 | NPU | [ResNet50.onnx](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.onnx) |
|
| 59 |
|
| 60 |
|
| 61 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 62 |
|
| 63 |
## Installation
|
| 64 |
|
|
|
|
| 113 |
```bash
|
| 114 |
python -m qai_hub_models.models.resnet50.export
|
| 115 |
```
|
|
|
|
| 116 |
```
|
| 117 |
+
Profiling Results
|
| 118 |
+
------------------------------------------------------------
|
| 119 |
+
ResNet50
|
| 120 |
+
Device : Samsung Galaxy S23 (13)
|
| 121 |
+
Runtime : TFLITE
|
| 122 |
+
Estimated inference time (ms) : 2.3
|
| 123 |
+
Estimated peak memory usage (MB): [0, 2]
|
| 124 |
+
Total # Ops : 79
|
| 125 |
+
Compute Unit(s) : NPU (79 ops)
|
| 126 |
```
|
| 127 |
|
| 128 |
|
|
|
|
| 221 |
Get more details on ResNet50's performance across various devices [here](https://aihub.qualcomm.com/models/resnet50).
|
| 222 |
Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
|
| 223 |
|
| 224 |
+
|
| 225 |
## License
|
| 226 |
+
* The license for the original implementation of ResNet50 can be found [here](https://github.com/pytorch/vision/blob/main/LICENSE).
|
| 227 |
+
* The license for the compiled assets for on-device deployment can be found [here](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/Qualcomm+AI+Hub+Proprietary+License.pdf)
|
| 228 |
+
|
| 229 |
+
|
| 230 |
|
| 231 |
## References
|
| 232 |
* [Deep Residual Learning for Image Recognition](https://arxiv.org/abs/1512.03385)
|
| 233 |
* [Source Model Implementation](https://github.com/pytorch/vision/blob/main/torchvision/models/resnet.py)
|
| 234 |
|
| 235 |
+
|
| 236 |
+
|
| 237 |
## Community
|
| 238 |
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
|
| 239 |
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|