Upload README.md with huggingface_hub
Browse files
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.
|
| 40 |
-
| MediaPipe-Selfie-Segmentation | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 0.
|
| 41 |
-
| MediaPipe-Selfie-Segmentation | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 1.
|
| 42 |
-
| MediaPipe-Selfie-Segmentation | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 0.
|
| 43 |
-
| MediaPipe-Selfie-Segmentation | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 0.
|
| 44 |
-
| MediaPipe-Selfie-Segmentation | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 0.
|
| 45 |
-
| MediaPipe-Selfie-Segmentation | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 0.
|
| 46 |
-
| MediaPipe-Selfie-Segmentation | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 0.
|
| 47 |
-
| MediaPipe-Selfie-Segmentation | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 0.
|
| 48 |
-
| MediaPipe-Selfie-Segmentation | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 0.
|
| 49 |
-
| MediaPipe-Selfie-Segmentation | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 0.
|
| 50 |
-
| MediaPipe-Selfie-Segmentation | SA7255P ADP | SA7255P | TFLITE | 6.
|
| 51 |
-
| MediaPipe-Selfie-Segmentation | SA7255P ADP | SA7255P | QNN | 6.
|
| 52 |
-
| MediaPipe-Selfie-Segmentation | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 0.
|
| 53 |
-
| MediaPipe-Selfie-Segmentation | SA8255 (Proxy) | SA8255P Proxy | QNN | 0.
|
| 54 |
-
| MediaPipe-Selfie-Segmentation | SA8295P ADP | SA8295P | TFLITE | 1.
|
| 55 |
-
| MediaPipe-Selfie-Segmentation | SA8295P ADP | SA8295P | QNN |
|
| 56 |
-
| MediaPipe-Selfie-Segmentation | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 0.
|
| 57 |
-
| MediaPipe-Selfie-Segmentation | SA8650 (Proxy) | SA8650P Proxy | QNN | 0.
|
| 58 |
-
| MediaPipe-Selfie-Segmentation | SA8775P ADP | SA8775P | TFLITE | 1.
|
| 59 |
-
| MediaPipe-Selfie-Segmentation | SA8775P ADP | SA8775P | QNN | 1.
|
| 60 |
-
| MediaPipe-Selfie-Segmentation | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 0.
|
| 61 |
-
| MediaPipe-Selfie-Segmentation | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 1.
|
| 62 |
-
| MediaPipe-Selfie-Segmentation | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 0.
|
| 63 |
-
| MediaPipe-Selfie-Segmentation | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 1.
|
| 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[
|
| 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
|
| 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
|
|
|
|
| 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 |
|