Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -36,32 +36,34 @@ More details on model performance across various devices, can be found
|
|
36 |
|
37 |
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
38 |
|---|---|---|---|---|---|---|---|---|
|
39 |
-
| MediaPipeHandDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.
|
40 |
-
| MediaPipeHandDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 1.182 ms | 0 -
|
41 |
-
| MediaPipeHandDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.
|
42 |
-
| MediaPipeHandDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 0.
|
43 |
-
| MediaPipeHandDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.
|
44 |
-
| MediaPipeHandDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.
|
45 |
-
| MediaPipeHandDetector | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.
|
46 |
-
| MediaPipeHandDetector |
|
47 |
-
| MediaPipeHandDetector |
|
48 |
-
| MediaPipeHandDetector |
|
49 |
-
| MediaPipeHandDetector |
|
50 |
-
| MediaPipeHandDetector |
|
51 |
-
| MediaPipeHandDetector |
|
52 |
-
|
|
53 |
-
| MediaPipeHandLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 |
|
54 |
-
| MediaPipeHandLandmarkDetector | Samsung Galaxy
|
55 |
-
| MediaPipeHandLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 |
|
56 |
-
| MediaPipeHandLandmarkDetector |
|
57 |
-
| MediaPipeHandLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite |
|
58 |
-
| MediaPipeHandLandmarkDetector |
|
59 |
-
| MediaPipeHandLandmarkDetector |
|
60 |
-
| MediaPipeHandLandmarkDetector |
|
61 |
-
| MediaPipeHandLandmarkDetector |
|
62 |
-
| MediaPipeHandLandmarkDetector | SA8295P ADP | SA8295P | TFLITE |
|
63 |
-
| MediaPipeHandLandmarkDetector |
|
64 |
-
| MediaPipeHandLandmarkDetector |
|
|
|
|
|
65 |
|
66 |
|
67 |
|
@@ -126,7 +128,7 @@ MediaPipeHandDetector
|
|
126 |
Device : Samsung Galaxy S23 (13)
|
127 |
Runtime : TFLITE
|
128 |
Estimated inference time (ms) : 0.7
|
129 |
-
Estimated peak memory usage (MB): [0,
|
130 |
Total # Ops : 149
|
131 |
Compute Unit(s) : NPU (149 ops)
|
132 |
|
@@ -135,7 +137,7 @@ MediaPipeHandLandmarkDetector
|
|
135 |
Device : Samsung Galaxy S23 (13)
|
136 |
Runtime : TFLITE
|
137 |
Estimated inference time (ms) : 1.0
|
138 |
-
Estimated peak memory usage (MB): [0,
|
139 |
Total # Ops : 158
|
140 |
Compute Unit(s) : NPU (158 ops)
|
141 |
```
|
@@ -156,11 +158,12 @@ in memory using the `jit.trace` and then call the `submit_compile_job` API.
|
|
156 |
import torch
|
157 |
|
158 |
import qai_hub as hub
|
159 |
-
from qai_hub_models.models.mediapipe_hand import
|
160 |
|
161 |
# Load the model
|
162 |
-
|
163 |
-
|
|
|
164 |
|
165 |
# Device
|
166 |
device = hub.Device("Samsung Galaxy S23")
|
|
|
36 |
|
37 |
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
38 |
|---|---|---|---|---|---|---|---|---|
|
39 |
+
| MediaPipeHandDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.722 ms | 0 - 22 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
40 |
+
| MediaPipeHandDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 1.182 ms | 0 - 6 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.onnx) |
|
41 |
+
| MediaPipeHandDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.518 ms | 0 - 19 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
42 |
+
| MediaPipeHandDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 0.859 ms | 0 - 70 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.onnx) |
|
43 |
+
| MediaPipeHandDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.523 ms | 0 - 16 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
44 |
+
| MediaPipeHandDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.728 ms | 0 - 36 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.onnx) |
|
45 |
+
| MediaPipeHandDetector | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.713 ms | 0 - 75 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
46 |
+
| MediaPipeHandDetector | SA7255P ADP | SA7255P | TFLITE | 24.782 ms | 0 - 17 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
47 |
+
| MediaPipeHandDetector | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.716 ms | 0 - 22 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
48 |
+
| MediaPipeHandDetector | SA8295P ADP | SA8295P | TFLITE | 1.754 ms | 0 - 11 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
49 |
+
| MediaPipeHandDetector | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.723 ms | 0 - 22 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
50 |
+
| MediaPipeHandDetector | SA8775P ADP | SA8775P | TFLITE | 1.526 ms | 0 - 16 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
51 |
+
| MediaPipeHandDetector | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 1.292 ms | 0 - 19 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
|
52 |
+
| MediaPipeHandDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.19 ms | 4 - 4 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.onnx) |
|
53 |
+
| MediaPipeHandLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 1.019 ms | 0 - 36 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
54 |
+
| MediaPipeHandLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 1.544 ms | 0 - 8 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.onnx) |
|
55 |
+
| MediaPipeHandLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.731 ms | 0 - 18 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
56 |
+
| MediaPipeHandLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 1.135 ms | 0 - 69 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.onnx) |
|
57 |
+
| MediaPipeHandLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.698 ms | 0 - 17 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
58 |
+
| MediaPipeHandLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 1.066 ms | 0 - 40 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.onnx) |
|
59 |
+
| MediaPipeHandLandmarkDetector | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 1.001 ms | 0 - 6 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
60 |
+
| MediaPipeHandLandmarkDetector | SA7255P ADP | SA7255P | TFLITE | 35.495 ms | 0 - 16 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
61 |
+
| MediaPipeHandLandmarkDetector | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 1.018 ms | 0 - 47 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
62 |
+
| MediaPipeHandLandmarkDetector | SA8295P ADP | SA8295P | TFLITE | 2.271 ms | 0 - 12 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
63 |
+
| MediaPipeHandLandmarkDetector | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 1.023 ms | 0 - 229 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
64 |
+
| MediaPipeHandLandmarkDetector | SA8775P ADP | SA8775P | TFLITE | 2.213 ms | 0 - 17 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
65 |
+
| MediaPipeHandLandmarkDetector | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 1.795 ms | 0 - 16 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
|
66 |
+
| MediaPipeHandLandmarkDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.649 ms | 6 - 6 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.onnx) |
|
67 |
|
68 |
|
69 |
|
|
|
128 |
Device : Samsung Galaxy S23 (13)
|
129 |
Runtime : TFLITE
|
130 |
Estimated inference time (ms) : 0.7
|
131 |
+
Estimated peak memory usage (MB): [0, 22]
|
132 |
Total # Ops : 149
|
133 |
Compute Unit(s) : NPU (149 ops)
|
134 |
|
|
|
137 |
Device : Samsung Galaxy S23 (13)
|
138 |
Runtime : TFLITE
|
139 |
Estimated inference time (ms) : 1.0
|
140 |
+
Estimated peak memory usage (MB): [0, 36]
|
141 |
Total # Ops : 158
|
142 |
Compute Unit(s) : NPU (158 ops)
|
143 |
```
|
|
|
158 |
import torch
|
159 |
|
160 |
import qai_hub as hub
|
161 |
+
from qai_hub_models.models.mediapipe_hand import Model
|
162 |
|
163 |
# Load the model
|
164 |
+
model = Model.from_pretrained()
|
165 |
+
hand_detector_model = model.hand_detector
|
166 |
+
hand_landmark_detector_model = model.hand_landmark_detector
|
167 |
|
168 |
# Device
|
169 |
device = hub.Device("Samsung Galaxy S23")
|