bhushans commited on
Commit
8cc3220
1 Parent(s): 99a9775

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +34 -31
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.709 ms | 0 - 8 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 - 54 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.521 ms | 0 - 59 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.853 ms | 0 - 67 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.521 ms | 0 - 28 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.876 ms | 0 - 32 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.703 ms | 0 - 4 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
46
- | MediaPipeHandDetector | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.705 ms | 0 - 4 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
47
- | MediaPipeHandDetector | SA8775 (Proxy) | SA8775P Proxy | TFLITE | 0.704 ms | 0 - 3 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
48
- | MediaPipeHandDetector | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.712 ms | 0 - 3 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
49
- | MediaPipeHandDetector | SA8295P ADP | SA8295P | TFLITE | 1.75 ms | 0 - 22 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
50
- | MediaPipeHandDetector | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 1.29 ms | 0 - 52 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.tflite) |
51
- | MediaPipeHandDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.21 ms | 4 - 4 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandDetector.onnx) |
52
- | MediaPipeHandLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 1.01 ms | 0 - 1 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
53
- | MediaPipeHandLandmarkDetector | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 1.537 ms | 0 - 8 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.onnx) |
54
- | MediaPipeHandLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.75 ms | 0 - 62 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
55
- | MediaPipeHandLandmarkDetector | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 1.15 ms | 0 - 65 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.onnx) |
56
- | MediaPipeHandLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.692 ms | 0 - 31 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
57
- | MediaPipeHandLandmarkDetector | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 1.067 ms | 0 - 37 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.onnx) |
58
- | MediaPipeHandLandmarkDetector | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 1.005 ms | 0 - 1 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
59
- | MediaPipeHandLandmarkDetector | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 1.007 ms | 0 - 3 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
60
- | MediaPipeHandLandmarkDetector | SA8775 (Proxy) | SA8775P Proxy | TFLITE | 1.032 ms | 0 - 2 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
61
- | MediaPipeHandLandmarkDetector | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 1.061 ms | 0 - 2 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
62
- | MediaPipeHandLandmarkDetector | SA8295P ADP | SA8295P | TFLITE | 4.528 ms | 0 - 35 MB | FP16 | GPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
63
- | MediaPipeHandLandmarkDetector | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 2.635 ms | 0 - 55 MB | FP16 | NPU | [MediaPipe-Hand-Detection.tflite](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.tflite) |
64
- | MediaPipeHandLandmarkDetector | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.65 ms | 8 - 8 MB | FP16 | NPU | [MediaPipe-Hand-Detection.onnx](https://huggingface.co/qualcomm/MediaPipe-Hand-Detection/blob/main/MediaPipeHandLandmarkDetector.onnx) |
 
 
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, 8]
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, 1]
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 MediaPipeHandDetector,MediaPipeHandLandmarkDetector
160
 
161
  # Load the model
162
- hand_detector_model = MediaPipeHandDetector.from_pretrained()
163
- hand_landmark_detector_model = MediaPipeHandLandmarkDetector.from_pretrained()
 
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")