Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -35,34 +35,33 @@ 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 |
-
| ResNet-3D | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 21.
|
| 39 |
-
| ResNet-3D | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 16.
|
| 40 |
-
| ResNet-3D | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE |
|
| 41 |
-
| ResNet-3D | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 12.
|
| 42 |
-
| ResNet-3D | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE |
|
| 43 |
-
| ResNet-3D | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX |
|
| 44 |
-
| ResNet-3D | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE |
|
| 45 |
-
| ResNet-3D | SA7255P ADP | SA7255P | TFLITE |
|
| 46 |
-
| ResNet-3D | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 21.
|
| 47 |
-
| ResNet-3D | SA8295P ADP | SA8295P | TFLITE |
|
| 48 |
-
| ResNet-3D | SA8650 (Proxy) | SA8650P Proxy | TFLITE |
|
| 49 |
-
| ResNet-3D | SA8775P ADP | SA8775P | TFLITE | 41.
|
| 50 |
-
| ResNet-3D | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE |
|
| 51 |
-
| ResNet-3D | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 18.
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
## Installation
|
| 57 |
|
| 58 |
-
This model can be installed as a Python package via pip.
|
| 59 |
|
|
|
|
| 60 |
```bash
|
| 61 |
-
pip install "qai-hub-models[
|
| 62 |
```
|
| 63 |
|
| 64 |
|
| 65 |
-
|
| 66 |
## Configure Qualcomm® AI Hub to run this model on a cloud-hosted device
|
| 67 |
|
| 68 |
Sign-in to [Qualcomm® AI Hub](https://app.aihub.qualcomm.com/) with your
|
|
@@ -113,7 +112,7 @@ Profiling Results
|
|
| 113 |
ResNet-3D
|
| 114 |
Device : Samsung Galaxy S23 (13)
|
| 115 |
Runtime : TFLITE
|
| 116 |
-
Estimated inference time (ms) : 21.
|
| 117 |
Estimated peak memory usage (MB): [29, 921]
|
| 118 |
Total # Ops : 55
|
| 119 |
Compute Unit(s) : NPU (50 ops) CPU (5 ops)
|
|
@@ -141,7 +140,7 @@ from qai_hub_models.models.resnet_3d import Model
|
|
| 141 |
torch_model = Model.from_pretrained()
|
| 142 |
|
| 143 |
# Device
|
| 144 |
-
device = hub.Device("Samsung Galaxy
|
| 145 |
|
| 146 |
# Trace model
|
| 147 |
input_shape = torch_model.get_input_spec()
|
|
@@ -219,7 +218,8 @@ Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
|
|
| 219 |
|
| 220 |
|
| 221 |
## License
|
| 222 |
-
* The license for the original implementation of ResNet-3D can be found
|
|
|
|
| 223 |
* 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)
|
| 224 |
|
| 225 |
|
|
|
|
| 35 |
|
| 36 |
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 37 |
|---|---|---|---|---|---|---|---|---|
|
| 38 |
+
| ResNet-3D | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 21.3 ms | 29 - 921 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 39 |
+
| ResNet-3D | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 16.085 ms | 0 - 218 MB | FP16 | NPU | [ResNet-3D.onnx](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.onnx) |
|
| 40 |
+
| ResNet-3D | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 16.105 ms | 29 - 62 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 41 |
+
| ResNet-3D | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 12.422 ms | 2 - 54 MB | FP16 | NPU | [ResNet-3D.onnx](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.onnx) |
|
| 42 |
+
| ResNet-3D | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 14.054 ms | 28 - 62 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 43 |
+
| ResNet-3D | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 12.295 ms | 2 - 56 MB | FP16 | NPU | [ResNet-3D.onnx](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.onnx) |
|
| 44 |
+
| ResNet-3D | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 21.274 ms | 29 - 921 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 45 |
+
| ResNet-3D | SA7255P ADP | SA7255P | TFLITE | 729.974 ms | 29 - 58 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 46 |
+
| ResNet-3D | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 21.344 ms | 29 - 922 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 47 |
+
| ResNet-3D | SA8295P ADP | SA8295P | TFLITE | 37.968 ms | 29 - 61 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 48 |
+
| ResNet-3D | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 20.949 ms | 29 - 922 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 49 |
+
| ResNet-3D | SA8775P ADP | SA8775P | TFLITE | 41.233 ms | 29 - 58 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 50 |
+
| ResNet-3D | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 34.899 ms | 29 - 66 MB | FP16 | NPU | [ResNet-3D.tflite](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.tflite) |
|
| 51 |
+
| ResNet-3D | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 18.055 ms | 65 - 65 MB | FP16 | NPU | [ResNet-3D.onnx](https://huggingface.co/qualcomm/ResNet-3D/blob/main/ResNet-3D.onnx) |
|
| 52 |
|
| 53 |
|
| 54 |
|
| 55 |
|
| 56 |
## Installation
|
| 57 |
|
|
|
|
| 58 |
|
| 59 |
+
Install the package via pip:
|
| 60 |
```bash
|
| 61 |
+
pip install "qai-hub-models[resnet-3d]"
|
| 62 |
```
|
| 63 |
|
| 64 |
|
|
|
|
| 65 |
## Configure Qualcomm® AI Hub to run this model on a cloud-hosted device
|
| 66 |
|
| 67 |
Sign-in to [Qualcomm® AI Hub](https://app.aihub.qualcomm.com/) with your
|
|
|
|
| 112 |
ResNet-3D
|
| 113 |
Device : Samsung Galaxy S23 (13)
|
| 114 |
Runtime : TFLITE
|
| 115 |
+
Estimated inference time (ms) : 21.3
|
| 116 |
Estimated peak memory usage (MB): [29, 921]
|
| 117 |
Total # Ops : 55
|
| 118 |
Compute Unit(s) : NPU (50 ops) CPU (5 ops)
|
|
|
|
| 140 |
torch_model = Model.from_pretrained()
|
| 141 |
|
| 142 |
# Device
|
| 143 |
+
device = hub.Device("Samsung Galaxy S24")
|
| 144 |
|
| 145 |
# Trace model
|
| 146 |
input_shape = torch_model.get_input_spec()
|
|
|
|
| 218 |
|
| 219 |
|
| 220 |
## License
|
| 221 |
+
* The license for the original implementation of ResNet-3D can be found
|
| 222 |
+
[here](https://github.com/pytorch/vision/blob/main/LICENSE).
|
| 223 |
* 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)
|
| 224 |
|
| 225 |
|