qaihm-bot commited on
Commit
dffad80
·
verified ·
1 Parent(s): 7dd65df

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +30 -30
README.md CHANGED
@@ -36,45 +36,44 @@ 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
- | MediaPipe-Selfie-Segmentation | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.707 ms | 0 - 7 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
40
- | MediaPipe-Selfie-Segmentation | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 0.769 ms | 1 - 7 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.so](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.so) |
41
- | MediaPipe-Selfie-Segmentation | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 1.321 ms | 0 - 6 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.onnx](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.onnx) |
42
- | MediaPipe-Selfie-Segmentation | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.465 ms | 0 - 22 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
43
- | MediaPipe-Selfie-Segmentation | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 0.523 ms | 0 - 24 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.so](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.so) |
44
- | MediaPipe-Selfie-Segmentation | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 0.875 ms | 1 - 32 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.onnx](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.onnx) |
45
- | MediaPipe-Selfie-Segmentation | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.373 ms | 0 - 18 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
46
- | MediaPipe-Selfie-Segmentation | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 0.436 ms | 0 - 18 MB | FP16 | NPU | Use Export Script |
47
- | MediaPipe-Selfie-Segmentation | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.933 ms | 0 - 24 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.onnx](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.onnx) |
48
- | MediaPipe-Selfie-Segmentation | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.696 ms | 0 - 7 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
49
- | MediaPipe-Selfie-Segmentation | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 0.768 ms | 1 - 4 MB | FP16 | NPU | Use Export Script |
50
- | MediaPipe-Selfie-Segmentation | SA7255P ADP | SA7255P | TFLITE | 6.196 ms | 0 - 12 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
51
- | MediaPipe-Selfie-Segmentation | SA7255P ADP | SA7255P | QNN | 6.469 ms | 1 - 10 MB | FP16 | NPU | Use Export Script |
52
- | MediaPipe-Selfie-Segmentation | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.702 ms | 0 - 8 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
53
- | MediaPipe-Selfie-Segmentation | SA8255 (Proxy) | SA8255P Proxy | QNN | 0.765 ms | 1 - 4 MB | FP16 | NPU | Use Export Script |
54
- | MediaPipe-Selfie-Segmentation | SA8295P ADP | SA8295P | TFLITE | 1.281 ms | 0 - 17 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
55
- | MediaPipe-Selfie-Segmentation | SA8295P ADP | SA8295P | QNN | 1.583 ms | 0 - 14 MB | FP16 | NPU | Use Export Script |
56
- | MediaPipe-Selfie-Segmentation | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.702 ms | 0 - 7 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
57
- | MediaPipe-Selfie-Segmentation | SA8650 (Proxy) | SA8650P Proxy | QNN | 0.757 ms | 1 - 3 MB | FP16 | NPU | Use Export Script |
58
- | MediaPipe-Selfie-Segmentation | SA8775P ADP | SA8775P | TFLITE | 1.209 ms | 0 - 12 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
59
- | MediaPipe-Selfie-Segmentation | SA8775P ADP | SA8775P | QNN | 1.422 ms | 1 - 11 MB | FP16 | NPU | Use Export Script |
60
- | MediaPipe-Selfie-Segmentation | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 0.935 ms | 0 - 22 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
61
- | MediaPipe-Selfie-Segmentation | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 1.079 ms | 1 - 22 MB | FP16 | NPU | Use Export Script |
62
- | MediaPipe-Selfie-Segmentation | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 0.897 ms | 1 - 1 MB | FP16 | NPU | Use Export Script |
63
- | MediaPipe-Selfie-Segmentation | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.353 ms | 2 - 2 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.onnx](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.onnx) |
64
 
65
 
66
 
67
 
68
  ## Installation
69
 
70
- This model can be installed as a Python package via pip.
71
 
 
72
  ```bash
73
- pip install "qai-hub-models[mediapipe_selfie]"
74
  ```
75
 
76
 
77
-
78
  ## Configure Qualcomm® AI Hub to run this model on a cloud-hosted device
79
 
80
  Sign-in to [Qualcomm® AI Hub](https://app.aihub.qualcomm.com/) with your
@@ -153,7 +152,7 @@ from qai_hub_models.models.mediapipe_selfie import Model
153
  torch_model = Model.from_pretrained()
154
 
155
  # Device
156
- device = hub.Device("Samsung Galaxy S23")
157
 
158
  # Trace model
159
  input_shape = torch_model.get_input_spec()
@@ -245,7 +244,8 @@ Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
245
 
246
 
247
  ## License
248
- * The license for the original implementation of MediaPipe-Selfie-Segmentation can be found [here](https://github.com/google/mediapipe/blob/master/LICENSE).
 
249
  * 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)
250
 
251
 
 
36
 
37
  | Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
38
  |---|---|---|---|---|---|---|---|---|
39
+ | MediaPipe-Selfie-Segmentation | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 0.71 ms | 0 - 7 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
40
+ | MediaPipe-Selfie-Segmentation | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 0.771 ms | 1 - 7 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.so](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.so) |
41
+ | MediaPipe-Selfie-Segmentation | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 1.319 ms | 0 - 9 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.onnx](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.onnx) |
42
+ | MediaPipe-Selfie-Segmentation | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.464 ms | 0 - 23 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
43
+ | MediaPipe-Selfie-Segmentation | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 0.516 ms | 0 - 25 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.so](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.so) |
44
+ | MediaPipe-Selfie-Segmentation | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 0.866 ms | 0 - 32 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.onnx](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.onnx) |
45
+ | MediaPipe-Selfie-Segmentation | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.445 ms | 0 - 18 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
46
+ | MediaPipe-Selfie-Segmentation | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 0.508 ms | 1 - 19 MB | FP16 | NPU | Use Export Script |
47
+ | MediaPipe-Selfie-Segmentation | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.872 ms | 1 - 25 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.onnx](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.onnx) |
48
+ | MediaPipe-Selfie-Segmentation | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.701 ms | 0 - 7 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
49
+ | MediaPipe-Selfie-Segmentation | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 0.762 ms | 1 - 4 MB | FP16 | NPU | Use Export Script |
50
+ | MediaPipe-Selfie-Segmentation | SA7255P ADP | SA7255P | TFLITE | 6.102 ms | 0 - 11 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
51
+ | MediaPipe-Selfie-Segmentation | SA7255P ADP | SA7255P | QNN | 6.345 ms | 1 - 10 MB | FP16 | NPU | Use Export Script |
52
+ | MediaPipe-Selfie-Segmentation | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.704 ms | 0 - 7 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
53
+ | MediaPipe-Selfie-Segmentation | SA8255 (Proxy) | SA8255P Proxy | QNN | 0.761 ms | 0 - 3 MB | FP16 | NPU | Use Export Script |
54
+ | MediaPipe-Selfie-Segmentation | SA8295P ADP | SA8295P | TFLITE | 1.282 ms | 0 - 17 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
55
+ | MediaPipe-Selfie-Segmentation | SA8295P ADP | SA8295P | QNN | 2.031 ms | 1 - 15 MB | FP16 | NPU | Use Export Script |
56
+ | MediaPipe-Selfie-Segmentation | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.707 ms | 0 - 7 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
57
+ | MediaPipe-Selfie-Segmentation | SA8650 (Proxy) | SA8650P Proxy | QNN | 0.765 ms | 1 - 4 MB | FP16 | NPU | Use Export Script |
58
+ | MediaPipe-Selfie-Segmentation | SA8775P ADP | SA8775P | TFLITE | 1.204 ms | 0 - 12 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
59
+ | MediaPipe-Selfie-Segmentation | SA8775P ADP | SA8775P | QNN | 1.443 ms | 1 - 11 MB | FP16 | NPU | Use Export Script |
60
+ | MediaPipe-Selfie-Segmentation | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 0.926 ms | 0 - 22 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.tflite](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.tflite) |
61
+ | MediaPipe-Selfie-Segmentation | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 1.003 ms | 1 - 25 MB | FP16 | NPU | Use Export Script |
62
+ | MediaPipe-Selfie-Segmentation | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 0.891 ms | 1 - 1 MB | FP16 | NPU | Use Export Script |
63
+ | MediaPipe-Selfie-Segmentation | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.369 ms | 2 - 2 MB | FP16 | NPU | [MediaPipe-Selfie-Segmentation.onnx](https://huggingface.co/qualcomm/MediaPipe-Selfie-Segmentation/blob/main/MediaPipe-Selfie-Segmentation.onnx) |
64
 
65
 
66
 
67
 
68
  ## Installation
69
 
 
70
 
71
+ Install the package via pip:
72
  ```bash
73
+ pip install "qai-hub-models[mediapipe-selfie]"
74
  ```
75
 
76
 
 
77
  ## Configure Qualcomm® AI Hub to run this model on a cloud-hosted device
78
 
79
  Sign-in to [Qualcomm® AI Hub](https://app.aihub.qualcomm.com/) with your
 
152
  torch_model = Model.from_pretrained()
153
 
154
  # Device
155
+ device = hub.Device("Samsung Galaxy S24")
156
 
157
  # Trace model
158
  input_shape = torch_model.get_input_spec()
 
244
 
245
 
246
  ## License
247
+ * The license for the original implementation of MediaPipe-Selfie-Segmentation can be found
248
+ [here](https://github.com/google/mediapipe/blob/master/LICENSE).
249
  * 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)
250
 
251