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 |
-
| DenseNet-121 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 1.
|
39 |
-
| DenseNet-121 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN |
|
40 |
-
| DenseNet-121 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 1.
|
41 |
-
| DenseNet-121 | Samsung Galaxy S24 | Snapdragon
|
42 |
-
| DenseNet-121 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 1.
|
43 |
-
| DenseNet-121 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 1.
|
44 |
-
| DenseNet-121 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 1.
|
45 |
-
| DenseNet-121 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 1.
|
46 |
-
| DenseNet-121 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 1.
|
47 |
-
| DenseNet-121 | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 1.
|
48 |
-
| DenseNet-121 | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 1.
|
49 |
-
| DenseNet-121 | SA7255P ADP | SA7255P | TFLITE | 53.
|
50 |
-
| DenseNet-121 | SA7255P ADP | SA7255P | QNN | 53.
|
51 |
-
| DenseNet-121 | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 1.
|
52 |
-
| DenseNet-121 | SA8255 (Proxy) | SA8255P Proxy | QNN | 1.
|
53 |
-
| DenseNet-121 | SA8295P ADP | SA8295P | TFLITE | 3.
|
54 |
-
| DenseNet-121 | SA8295P ADP | SA8295P | QNN | 3.
|
55 |
-
| DenseNet-121 | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 1.
|
56 |
-
| DenseNet-121 | SA8650 (Proxy) | SA8650P Proxy | QNN | 1.
|
57 |
-
| DenseNet-121 | SA8775P ADP | SA8775P | TFLITE | 3.
|
58 |
-
| DenseNet-121 | SA8775P ADP | SA8775P | QNN | 3.
|
59 |
-
| DenseNet-121 | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 2.
|
60 |
-
| DenseNet-121 | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 2.
|
61 |
-
| DenseNet-121 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 2.
|
62 |
-
| DenseNet-121 | 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.densenet121 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 DenseNet-121 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 |
+
| DenseNet-121 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 1.929 ms | 0 - 48 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
39 |
+
| DenseNet-121 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 1.997 ms | 0 - 37 MB | FP16 | NPU | [DenseNet-121.so](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.so) |
|
40 |
+
| DenseNet-121 | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 1.905 ms | 0 - 56 MB | FP16 | NPU | [DenseNet-121.onnx](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.onnx) |
|
41 |
+
| DenseNet-121 | Samsung Galaxy S24 | Snapdragon�� 8 Gen 3 | TFLITE | 1.294 ms | 0 - 21 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
42 |
+
| DenseNet-121 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 1.331 ms | 0 - 25 MB | FP16 | NPU | [DenseNet-121.so](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.so) |
|
43 |
+
| DenseNet-121 | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 1.34 ms | 0 - 44 MB | FP16 | NPU | [DenseNet-121.onnx](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.onnx) |
|
44 |
+
| DenseNet-121 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 1.018 ms | 0 - 25 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
45 |
+
| DenseNet-121 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 1.042 ms | 1 - 24 MB | FP16 | NPU | Use Export Script |
|
46 |
+
| DenseNet-121 | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 1.326 ms | 1 - 28 MB | FP16 | NPU | [DenseNet-121.onnx](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.onnx) |
|
47 |
+
| DenseNet-121 | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 1.929 ms | 0 - 49 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
48 |
+
| DenseNet-121 | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 1.8 ms | 1 - 3 MB | FP16 | NPU | Use Export Script |
|
49 |
+
| DenseNet-121 | SA7255P ADP | SA7255P | TFLITE | 53.295 ms | 0 - 18 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
50 |
+
| DenseNet-121 | SA7255P ADP | SA7255P | QNN | 53.485 ms | 1 - 10 MB | FP16 | NPU | Use Export Script |
|
51 |
+
| DenseNet-121 | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 1.933 ms | 0 - 48 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
52 |
+
| DenseNet-121 | SA8255 (Proxy) | SA8255P Proxy | QNN | 1.799 ms | 1 - 3 MB | FP16 | NPU | Use Export Script |
|
53 |
+
| DenseNet-121 | SA8295P ADP | SA8295P | TFLITE | 3.334 ms | 0 - 26 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
54 |
+
| DenseNet-121 | SA8295P ADP | SA8295P | QNN | 3.271 ms | 0 - 14 MB | FP16 | NPU | Use Export Script |
|
55 |
+
| DenseNet-121 | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 1.929 ms | 0 - 48 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
56 |
+
| DenseNet-121 | SA8650 (Proxy) | SA8650P Proxy | QNN | 1.805 ms | 1 - 3 MB | FP16 | NPU | Use Export Script |
|
57 |
+
| DenseNet-121 | SA8775P ADP | SA8775P | TFLITE | 3.633 ms | 0 - 19 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
58 |
+
| DenseNet-121 | SA8775P ADP | SA8775P | QNN | 3.578 ms | 1 - 11 MB | FP16 | NPU | Use Export Script |
|
59 |
+
| DenseNet-121 | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 2.634 ms | 0 - 27 MB | FP16 | NPU | [DenseNet-121.tflite](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.tflite) |
|
60 |
+
| DenseNet-121 | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 2.702 ms | 1 - 25 MB | FP16 | NPU | Use Export Script |
|
61 |
+
| DenseNet-121 | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 2.011 ms | 1 - 1 MB | FP16 | NPU | Use Export Script |
|
62 |
+
| DenseNet-121 | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 2.01 ms | 17 - 17 MB | FP16 | NPU | [DenseNet-121.onnx](https://huggingface.co/qualcomm/DenseNet-121/blob/main/DenseNet-121.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 DenseNet-121 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 |
|