Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -37,52 +37,56 @@ More details on model performance across various devices, can be found
|
|
| 37 |
|
| 38 |
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 39 |
|---|---|---|---|---|---|---|---|---|
|
| 40 |
-
| MediaPipeFaceDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.
|
| 41 |
-
| MediaPipeFaceDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 0.
|
| 42 |
-
| MediaPipeFaceDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 0.
|
| 43 |
-
| MediaPipeFaceDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.
|
| 44 |
-
| MediaPipeFaceDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 0.
|
| 45 |
-
| MediaPipeFaceDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 0.
|
| 46 |
-
| MediaPipeFaceDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.
|
| 47 |
-
| MediaPipeFaceDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 0.
|
| 48 |
-
| MediaPipeFaceDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.
|
| 49 |
-
| MediaPipeFaceDetector | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.
|
| 50 |
-
| MediaPipeFaceDetector | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 0.
|
| 51 |
-
| MediaPipeFaceDetector |
|
| 52 |
-
| MediaPipeFaceDetector |
|
| 53 |
-
| MediaPipeFaceDetector |
|
| 54 |
-
| MediaPipeFaceDetector |
|
| 55 |
-
| MediaPipeFaceDetector |
|
| 56 |
-
| MediaPipeFaceDetector |
|
| 57 |
-
| MediaPipeFaceDetector |
|
| 58 |
-
| MediaPipeFaceDetector |
|
| 59 |
-
| MediaPipeFaceDetector |
|
| 60 |
-
| MediaPipeFaceDetector |
|
| 61 |
-
| MediaPipeFaceDetector |
|
| 62 |
-
| MediaPipeFaceDetector |
|
| 63 |
-
|
|
| 64 |
-
|
|
| 65 |
-
| MediaPipeFaceLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 |
|
| 66 |
-
| MediaPipeFaceLandmarkDetector | Samsung Galaxy
|
| 67 |
-
| MediaPipeFaceLandmarkDetector | Samsung Galaxy
|
| 68 |
-
| MediaPipeFaceLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 |
|
| 69 |
-
| MediaPipeFaceLandmarkDetector |
|
| 70 |
-
| MediaPipeFaceLandmarkDetector |
|
| 71 |
-
| MediaPipeFaceLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite |
|
| 72 |
-
| MediaPipeFaceLandmarkDetector |
|
| 73 |
-
| MediaPipeFaceLandmarkDetector |
|
| 74 |
-
| MediaPipeFaceLandmarkDetector |
|
| 75 |
-
| MediaPipeFaceLandmarkDetector |
|
| 76 |
-
| MediaPipeFaceLandmarkDetector |
|
| 77 |
-
| MediaPipeFaceLandmarkDetector |
|
| 78 |
-
| MediaPipeFaceLandmarkDetector |
|
| 79 |
-
| MediaPipeFaceLandmarkDetector |
|
| 80 |
-
| MediaPipeFaceLandmarkDetector | SA8295P ADP | SA8295P | TFLITE | 0.
|
| 81 |
-
| MediaPipeFaceLandmarkDetector | SA8295P ADP | SA8295P | QNN | 0.
|
| 82 |
-
| MediaPipeFaceLandmarkDetector |
|
| 83 |
-
| MediaPipeFaceLandmarkDetector |
|
| 84 |
-
| MediaPipeFaceLandmarkDetector |
|
| 85 |
-
| MediaPipeFaceLandmarkDetector |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 86 |
|
| 87 |
|
| 88 |
|
|
@@ -146,8 +150,8 @@ Profiling Results
|
|
| 146 |
MediaPipeFaceDetector
|
| 147 |
Device : Samsung Galaxy S23 (13)
|
| 148 |
Runtime : TFLITE
|
| 149 |
-
Estimated inference time (ms) : 0.
|
| 150 |
-
Estimated peak memory usage (MB): [0,
|
| 151 |
Total # Ops : 111
|
| 152 |
Compute Unit(s) : NPU (111 ops)
|
| 153 |
|
|
@@ -156,7 +160,7 @@ MediaPipeFaceLandmarkDetector
|
|
| 156 |
Device : Samsung Galaxy S23 (13)
|
| 157 |
Runtime : TFLITE
|
| 158 |
Estimated inference time (ms) : 0.2
|
| 159 |
-
Estimated peak memory usage (MB): [0,
|
| 160 |
Total # Ops : 100
|
| 161 |
Compute Unit(s) : NPU (100 ops)
|
| 162 |
```
|
|
@@ -177,11 +181,12 @@ in memory using the `jit.trace` and then call the `submit_compile_job` API.
|
|
| 177 |
import torch
|
| 178 |
|
| 179 |
import qai_hub as hub
|
| 180 |
-
from qai_hub_models.models.mediapipe_face import
|
| 181 |
|
| 182 |
# Load the model
|
| 183 |
-
|
| 184 |
-
|
|
|
|
| 185 |
|
| 186 |
# Device
|
| 187 |
device = hub.Device("Samsung Galaxy S23")
|
|
|
|
| 37 |
|
| 38 |
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 39 |
|---|---|---|---|---|---|---|---|---|
|
| 40 |
+
| MediaPipeFaceDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.554 ms | 0 - 5 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 41 |
+
| MediaPipeFaceDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 0.63 ms | 1 - 6 MB | FP16 | NPU | [MediaPipe-Face-Detection.so](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.so) |
|
| 42 |
+
| MediaPipeFaceDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 0.995 ms | 0 - 2 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.onnx) |
|
| 43 |
+
| MediaPipeFaceDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.398 ms | 0 - 16 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 44 |
+
| MediaPipeFaceDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 0.46 ms | 0 - 15 MB | FP16 | NPU | [MediaPipe-Face-Detection.so](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.so) |
|
| 45 |
+
| MediaPipeFaceDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 0.754 ms | 0 - 42 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.onnx) |
|
| 46 |
+
| MediaPipeFaceDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.414 ms | 0 - 11 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 47 |
+
| MediaPipeFaceDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 0.501 ms | 0 - 12 MB | FP16 | NPU | Use Export Script |
|
| 48 |
+
| MediaPipeFaceDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.759 ms | 0 - 31 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.onnx) |
|
| 49 |
+
| MediaPipeFaceDetector | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.559 ms | 0 - 76 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 50 |
+
| MediaPipeFaceDetector | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 0.601 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
|
| 51 |
+
| MediaPipeFaceDetector | SA7255P ADP | SA7255P | TFLITE | 18.865 ms | 0 - 12 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 52 |
+
| MediaPipeFaceDetector | SA7255P ADP | SA7255P | QNN | 19.081 ms | 1 - 6 MB | FP16 | NPU | Use Export Script |
|
| 53 |
+
| MediaPipeFaceDetector | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.557 ms | 0 - 5 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 54 |
+
| MediaPipeFaceDetector | SA8255 (Proxy) | SA8255P Proxy | QNN | 0.609 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
|
| 55 |
+
| MediaPipeFaceDetector | SA8295P ADP | SA8295P | TFLITE | 1.131 ms | 0 - 10 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 56 |
+
| MediaPipeFaceDetector | SA8295P ADP | SA8295P | QNN | 1.23 ms | 0 - 6 MB | FP16 | NPU | Use Export Script |
|
| 57 |
+
| MediaPipeFaceDetector | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.56 ms | 0 - 75 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 58 |
+
| MediaPipeFaceDetector | SA8650 (Proxy) | SA8650P Proxy | QNN | 0.603 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
|
| 59 |
+
| MediaPipeFaceDetector | SA8775P ADP | SA8775P | TFLITE | 1.247 ms | 0 - 11 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 60 |
+
| MediaPipeFaceDetector | SA8775P ADP | SA8775P | QNN | 1.446 ms | 1 - 6 MB | FP16 | NPU | Use Export Script |
|
| 61 |
+
| MediaPipeFaceDetector | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 0.764 ms | 0 - 15 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
|
| 62 |
+
| MediaPipeFaceDetector | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 0.839 ms | 1 - 15 MB | FP16 | NPU | Use Export Script |
|
| 63 |
+
| MediaPipeFaceDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 0.743 ms | 1 - 1 MB | FP16 | NPU | Use Export Script |
|
| 64 |
+
| MediaPipeFaceDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.064 ms | 2 - 2 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.onnx) |
|
| 65 |
+
| MediaPipeFaceLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.196 ms | 0 - 77 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 66 |
+
| MediaPipeFaceLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 0.276 ms | 0 - 7 MB | FP16 | NPU | [MediaPipe-Face-Detection.so](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.so) |
|
| 67 |
+
| MediaPipeFaceLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 0.5 ms | 0 - 11 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.onnx) |
|
| 68 |
+
| MediaPipeFaceLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.149 ms | 0 - 10 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 69 |
+
| MediaPipeFaceLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 0.206 ms | 0 - 10 MB | FP16 | NPU | [MediaPipe-Face-Detection.so](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.so) |
|
| 70 |
+
| MediaPipeFaceLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 0.386 ms | 0 - 32 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.onnx) |
|
| 71 |
+
| MediaPipeFaceLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.158 ms | 0 - 10 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 72 |
+
| MediaPipeFaceLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 0.191 ms | 0 - 9 MB | FP16 | NPU | Use Export Script |
|
| 73 |
+
| MediaPipeFaceLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.412 ms | 0 - 19 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.onnx) |
|
| 74 |
+
| MediaPipeFaceLandmarkDetector | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.188 ms | 0 - 7 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 75 |
+
| MediaPipeFaceLandmarkDetector | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 0.28 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
|
| 76 |
+
| MediaPipeFaceLandmarkDetector | SA7255P ADP | SA7255P | TFLITE | 3.614 ms | 0 - 10 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 77 |
+
| MediaPipeFaceLandmarkDetector | SA7255P ADP | SA7255P | QNN | 4.04 ms | 0 - 6 MB | FP16 | NPU | Use Export Script |
|
| 78 |
+
| MediaPipeFaceLandmarkDetector | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.192 ms | 0 - 4 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 79 |
+
| MediaPipeFaceLandmarkDetector | SA8255 (Proxy) | SA8255P Proxy | QNN | 0.277 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
|
| 80 |
+
| MediaPipeFaceLandmarkDetector | SA8295P ADP | SA8295P | TFLITE | 0.568 ms | 0 - 8 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 81 |
+
| MediaPipeFaceLandmarkDetector | SA8295P ADP | SA8295P | QNN | 0.793 ms | 0 - 6 MB | FP16 | NPU | Use Export Script |
|
| 82 |
+
| MediaPipeFaceLandmarkDetector | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.199 ms | 0 - 82 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 83 |
+
| MediaPipeFaceLandmarkDetector | SA8650 (Proxy) | SA8650P Proxy | QNN | 0.281 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
|
| 84 |
+
| MediaPipeFaceLandmarkDetector | SA8775P ADP | SA8775P | TFLITE | 0.507 ms | 0 - 9 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 85 |
+
| MediaPipeFaceLandmarkDetector | SA8775P ADP | SA8775P | QNN | 0.763 ms | 0 - 6 MB | FP16 | NPU | Use Export Script |
|
| 86 |
+
| MediaPipeFaceLandmarkDetector | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 0.274 ms | 0 - 12 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
|
| 87 |
+
| MediaPipeFaceLandmarkDetector | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 0.368 ms | 0 - 14 MB | FP16 | NPU | Use Export Script |
|
| 88 |
+
| MediaPipeFaceLandmarkDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 0.391 ms | 0 - 0 MB | FP16 | NPU | Use Export Script |
|
| 89 |
+
| MediaPipeFaceLandmarkDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 0.546 ms | 2 - 2 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.onnx) |
|
| 90 |
|
| 91 |
|
| 92 |
|
|
|
|
| 150 |
MediaPipeFaceDetector
|
| 151 |
Device : Samsung Galaxy S23 (13)
|
| 152 |
Runtime : TFLITE
|
| 153 |
+
Estimated inference time (ms) : 0.6
|
| 154 |
+
Estimated peak memory usage (MB): [0, 5]
|
| 155 |
Total # Ops : 111
|
| 156 |
Compute Unit(s) : NPU (111 ops)
|
| 157 |
|
|
|
|
| 160 |
Device : Samsung Galaxy S23 (13)
|
| 161 |
Runtime : TFLITE
|
| 162 |
Estimated inference time (ms) : 0.2
|
| 163 |
+
Estimated peak memory usage (MB): [0, 77]
|
| 164 |
Total # Ops : 100
|
| 165 |
Compute Unit(s) : NPU (100 ops)
|
| 166 |
```
|
|
|
|
| 181 |
import torch
|
| 182 |
|
| 183 |
import qai_hub as hub
|
| 184 |
+
from qai_hub_models.models.mediapipe_face import Model
|
| 185 |
|
| 186 |
# Load the model
|
| 187 |
+
model = Model.from_pretrained()
|
| 188 |
+
face_detector_model = model.face_detector
|
| 189 |
+
face_landmark_detector_model = model.face_landmark_detector
|
| 190 |
|
| 191 |
# Device
|
| 192 |
device = hub.Device("Samsung Galaxy S23")
|