bhushans commited on
Commit
1cff048
·
verified ·
1 Parent(s): 600f929

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +57 -52
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.545 ms | 0 - 2 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.628 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.987 ms | 0 - 3 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.409 ms | 0 - 34 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.461 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.753 ms | 0 - 39 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.434 ms | 0 - 24 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.457 ms | 0 - 12 MB | FP16 | NPU | Use Export Script |
48
- | MediaPipeFaceDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.749 ms | 0 - 27 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.544 ms | 0 - 1 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.602 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
51
- | MediaPipeFaceDetector | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.547 ms | 0 - 8 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
52
- | MediaPipeFaceDetector | SA8255 (Proxy) | SA8255P Proxy | QNN | 0.608 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
53
- | MediaPipeFaceDetector | SA8775 (Proxy) | SA8775P Proxy | TFLITE | 0.549 ms | 0 - 1 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
54
- | MediaPipeFaceDetector | SA8775 (Proxy) | SA8775P Proxy | QNN | 0.612 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
55
- | MediaPipeFaceDetector | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.558 ms | 0 - 5 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
56
- | MediaPipeFaceDetector | SA8650 (Proxy) | SA8650P Proxy | QNN | 0.602 ms | 1 - 2 MB | FP16 | NPU | Use Export Script |
57
- | MediaPipeFaceDetector | SA8295P ADP | SA8295P | TFLITE | 1.135 ms | 0 - 21 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
58
- | MediaPipeFaceDetector | SA8295P ADP | SA8295P | QNN | 1.407 ms | 0 - 6 MB | FP16 | NPU | Use Export Script |
59
- | MediaPipeFaceDetector | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 0.756 ms | 0 - 30 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.tflite) |
60
- | MediaPipeFaceDetector | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 0.833 ms | 1 - 17 MB | FP16 | NPU | Use Export Script |
61
- | MediaPipeFaceDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 0.778 ms | 1 - 1 MB | FP16 | NPU | Use Export Script |
62
- | MediaPipeFaceDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.06 ms | 2 - 2 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceDetector.onnx) |
63
- | MediaPipeFaceLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.19 ms | 0 - 2 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
64
- | MediaPipeFaceLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 0.283 ms | 0 - 8 MB | FP16 | NPU | [MediaPipe-Face-Detection.so](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.so) |
65
- | MediaPipeFaceLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 0.509 ms | 0 - 3 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.onnx) |
66
- | MediaPipeFaceLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.146 ms | 0 - 28 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
67
- | MediaPipeFaceLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 0.206 ms | 0 - 12 MB | FP16 | NPU | [MediaPipe-Face-Detection.so](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.so) |
68
- | MediaPipeFaceLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 0.381 ms | 0 - 31 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.onnx) |
69
- | MediaPipeFaceLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.143 ms | 0 - 18 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
70
- | MediaPipeFaceLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 0.174 ms | 0 - 10 MB | FP16 | NPU | Use Export Script |
71
- | MediaPipeFaceLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.403 ms | 0 - 18 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.onnx) |
72
- | MediaPipeFaceLandmarkDetector | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.19 ms | 0 - 1 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
73
- | MediaPipeFaceLandmarkDetector | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 0.284 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
74
- | MediaPipeFaceLandmarkDetector | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.19 ms | 0 - 1 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
75
- | MediaPipeFaceLandmarkDetector | SA8255 (Proxy) | SA8255P Proxy | QNN | 0.275 ms | 0 - 1 MB | FP16 | NPU | Use Export Script |
76
- | MediaPipeFaceLandmarkDetector | SA8775 (Proxy) | SA8775P Proxy | TFLITE | 0.192 ms | 0 - 6 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
77
- | MediaPipeFaceLandmarkDetector | SA8775 (Proxy) | SA8775P Proxy | QNN | 0.278 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
78
- | MediaPipeFaceLandmarkDetector | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.191 ms | 0 - 1 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
79
- | MediaPipeFaceLandmarkDetector | SA8650 (Proxy) | SA8650P Proxy | QNN | 0.279 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
80
- | MediaPipeFaceLandmarkDetector | SA8295P ADP | SA8295P | TFLITE | 0.562 ms | 0 - 17 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.762 ms | 0 - 6 MB | FP16 | NPU | Use Export Script |
82
- | MediaPipeFaceLandmarkDetector | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 0.278 ms | 0 - 28 MB | FP16 | NPU | [MediaPipe-Face-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.tflite) |
83
- | MediaPipeFaceLandmarkDetector | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 0.382 ms | 0 - 14 MB | FP16 | NPU | Use Export Script |
84
- | MediaPipeFaceLandmarkDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 0.397 ms | 0 - 0 MB | FP16 | NPU | Use Export Script |
85
- | MediaPipeFaceLandmarkDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 0.515 ms | 3 - 3 MB | FP16 | NPU | [MediaPipe-Face-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Face-Detection/blob/main/MediaPipeFaceLandmarkDetector.onnx) |
 
 
 
 
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.5
150
- Estimated peak memory usage (MB): [0, 2]
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, 2]
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 MediaPipeFaceDetector,MediaPipeFaceLandmarkDetector
181
 
182
  # Load the model
183
- face_detector_model = MediaPipeFaceDetector.from_pretrained()
184
- face_landmark_detector_model = MediaPipeFaceLandmarkDetector.from_pretrained()
 
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")