Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -35,39 +35,39 @@ More details on model performance across various devices, can be found
|
|
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.
|
39 |
-
| ResNet50 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 2.
|
40 |
-
| ResNet50 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 2.
|
41 |
-
| ResNet50 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 1.
|
42 |
-
| ResNet50 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 1.
|
43 |
-
| ResNet50 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 1.
|
44 |
-
| ResNet50 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 1.
|
45 |
-
| ResNet50 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 1.
|
46 |
-
| ResNet50 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 1.
|
47 |
-
| ResNet50 | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 2.
|
48 |
-
| ResNet50 | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 2.
|
49 |
-
| ResNet50 | SA7255P ADP | SA7255P | TFLITE | 76.
|
50 |
-
| ResNet50 | SA7255P ADP | SA7255P | QNN | 77.
|
51 |
-
| ResNet50 | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 2.
|
52 |
-
| ResNet50 | SA8255 (Proxy) | SA8255P Proxy | QNN | 2.
|
53 |
-
| ResNet50 | SA8295P ADP | SA8295P | TFLITE | 3.
|
54 |
-
| ResNet50 | SA8295P ADP | SA8295P | QNN | 4.
|
55 |
-
| ResNet50 | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 2.
|
56 |
-
| ResNet50 | SA8650 (Proxy) | SA8650P Proxy | QNN | 2.
|
57 |
-
| ResNet50 | SA8775P ADP | SA8775P | TFLITE | 4.
|
58 |
-
| ResNet50 | SA8775P ADP | SA8775P | QNN | 4.
|
59 |
-
| ResNet50 | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 3.
|
60 |
-
| ResNet50 | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 3.
|
61 |
-
| ResNet50 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 2.
|
62 |
-
| ResNet50 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 2.
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
## Installation
|
68 |
|
69 |
-
This model can be installed as a Python package via pip.
|
70 |
|
|
|
71 |
```bash
|
72 |
pip install qai-hub-models
|
73 |
```
|
@@ -151,7 +151,7 @@ from qai_hub_models.models.resnet50 import Model
|
|
151 |
torch_model = Model.from_pretrained()
|
152 |
|
153 |
# Device
|
154 |
-
device = hub.Device("Samsung Galaxy
|
155 |
|
156 |
# Trace model
|
157 |
input_shape = torch_model.get_input_spec()
|
@@ -243,7 +243,8 @@ Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
|
|
243 |
|
244 |
|
245 |
## License
|
246 |
-
* The license for the original implementation of ResNet50 can be found
|
|
|
247 |
* 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)
|
248 |
|
249 |
|
|
|
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.269 ms | 0 - 244 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.383 ms | 0 - 173 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.298 ms | 0 - 238 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.615 ms | 0 - 29 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
42 |
+
| ResNet50 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 1.689 ms | 1 - 30 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.727 ms | 0 - 33 MB | FP16 | NPU | [ResNet50.onnx](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.onnx) |
|
44 |
+
| ResNet50 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 1.346 ms | 0 - 27 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
45 |
+
| ResNet50 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 1.623 ms | 1 - 28 MB | FP16 | NPU | Use Export Script |
|
46 |
+
| ResNet50 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 1.669 ms | 1 - 28 MB | FP16 | NPU | [ResNet50.onnx](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.onnx) |
|
47 |
+
| ResNet50 | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 2.273 ms | 0 - 243 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
48 |
+
| ResNet50 | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 2.186 ms | 1 - 3 MB | FP16 | NPU | Use Export Script |
|
49 |
+
| ResNet50 | SA7255P ADP | SA7255P | TFLITE | 76.179 ms | 0 - 23 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
50 |
+
| ResNet50 | SA7255P ADP | SA7255P | QNN | 77.365 ms | 1 - 9 MB | FP16 | NPU | Use Export Script |
|
51 |
+
| ResNet50 | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 2.274 ms | 0 - 244 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
52 |
+
| ResNet50 | SA8255 (Proxy) | SA8255P Proxy | QNN | 2.188 ms | 1 - 3 MB | FP16 | NPU | Use Export Script |
|
53 |
+
| ResNet50 | SA8295P ADP | SA8295P | TFLITE | 3.777 ms | 0 - 21 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
54 |
+
| ResNet50 | SA8295P ADP | SA8295P | QNN | 4.04 ms | 0 - 14 MB | FP16 | NPU | Use Export Script |
|
55 |
+
| ResNet50 | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 2.273 ms | 0 - 243 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
56 |
+
| ResNet50 | SA8650 (Proxy) | SA8650P Proxy | QNN | 2.179 ms | 1 - 3 MB | FP16 | NPU | Use Export Script |
|
57 |
+
| ResNet50 | SA8775P ADP | SA8775P | TFLITE | 4.149 ms | 0 - 23 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
58 |
+
| ResNet50 | SA8775P ADP | SA8775P | QNN | 4.215 ms | 0 - 10 MB | FP16 | NPU | Use Export Script |
|
59 |
+
| ResNet50 | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 3.096 ms | 0 - 24 MB | FP16 | NPU | [ResNet50.tflite](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.tflite) |
|
60 |
+
| ResNet50 | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 3.137 ms | 1 - 20 MB | FP16 | NPU | Use Export Script |
|
61 |
+
| ResNet50 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 2.328 ms | 1 - 1 MB | FP16 | NPU | Use Export Script |
|
62 |
+
| ResNet50 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 2.334 ms | 51 - 51 MB | FP16 | NPU | [ResNet50.onnx](https://huggingface.co/qualcomm/ResNet50/blob/main/ResNet50.onnx) |
|
63 |
|
64 |
|
65 |
|
66 |
|
67 |
## Installation
|
68 |
|
|
|
69 |
|
70 |
+
Install the package via pip:
|
71 |
```bash
|
72 |
pip install qai-hub-models
|
73 |
```
|
|
|
151 |
torch_model = Model.from_pretrained()
|
152 |
|
153 |
# Device
|
154 |
+
device = hub.Device("Samsung Galaxy S24")
|
155 |
|
156 |
# Trace model
|
157 |
input_shape = torch_model.get_input_spec()
|
|
|
243 |
|
244 |
|
245 |
## License
|
246 |
+
* The license for the original implementation of ResNet50 can be found
|
247 |
+
[here](https://github.com/pytorch/vision/blob/main/LICENSE).
|
248 |
* 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)
|
249 |
|
250 |
|