v0.49.1
Browse filesSee https://github.com/qualcomm/ai-hub-models/releases/v0.49.1 for changelog.
README.md
CHANGED
|
@@ -15,7 +15,7 @@ pipeline_tag: image-classification
|
|
| 15 |
Contrastive Language-Image Pre-Training (CLIP) uses a ViT like transformer to get visual features and a causal language model to get the text features. Both the text and visual features can then be used for a variety of zero-shot learning tasks.
|
| 16 |
|
| 17 |
This is based on the implementation of OpenAI-Clip found [here](https://github.com/openai/CLIP/).
|
| 18 |
-
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/
|
| 19 |
|
| 20 |
Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) to run these models on a hosted Qualcomm® device.
|
| 21 |
|
|
@@ -24,19 +24,25 @@ There are two ways to deploy this model on your device:
|
|
| 24 |
|
| 25 |
### Option 1: Download Pre-Exported Models
|
| 26 |
|
| 27 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
|
| 29 |
|
| 30 |
### Option 2: Export with Custom Configurations
|
| 31 |
|
| 32 |
-
Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/
|
| 33 |
- Custom weights (e.g., fine-tuned checkpoints)
|
| 34 |
- Custom input shapes
|
| 35 |
- Target device and runtime configurations
|
| 36 |
|
| 37 |
This option is ideal if you need to customize the model beyond the default configuration provided here.
|
| 38 |
|
| 39 |
-
See our repository for [OpenAI-Clip on GitHub](https://github.com/qualcomm/ai-hub-models/
|
| 40 |
|
| 41 |
## Model Details
|
| 42 |
|
|
@@ -52,35 +58,35 @@ See our repository for [OpenAI-Clip on GitHub](https://github.com/qualcomm/ai-hu
|
|
| 52 |
## Performance Summary
|
| 53 |
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
|
| 54 |
|---|---|---|---|---|---|---
|
| 55 |
-
| OpenAI-Clip | ONNX | float | Snapdragon®
|
| 56 |
-
| OpenAI-Clip | ONNX | float | Snapdragon®
|
| 57 |
-
| OpenAI-Clip | ONNX | float | Snapdragon®
|
| 58 |
-
| OpenAI-Clip | ONNX | float |
|
| 59 |
-
| OpenAI-Clip | ONNX | float | Qualcomm®
|
| 60 |
-
| OpenAI-Clip | ONNX | float |
|
| 61 |
-
| OpenAI-Clip | ONNX | float | Snapdragon® 8 Elite
|
| 62 |
-
| OpenAI-Clip | QNN_DLC | float | Snapdragon®
|
| 63 |
-
| OpenAI-Clip | QNN_DLC | float | Snapdragon®
|
| 64 |
-
| OpenAI-Clip | QNN_DLC | float | Snapdragon®
|
| 65 |
-
| OpenAI-Clip | QNN_DLC | float |
|
| 66 |
-
| OpenAI-Clip | QNN_DLC | float | Qualcomm®
|
| 67 |
-
| OpenAI-Clip | QNN_DLC | float | Qualcomm®
|
| 68 |
-
| OpenAI-Clip | QNN_DLC | float | Qualcomm®
|
| 69 |
-
| OpenAI-Clip | QNN_DLC | float | Qualcomm®
|
| 70 |
-
| OpenAI-Clip | QNN_DLC | float | Qualcomm®
|
| 71 |
-
| OpenAI-Clip | QNN_DLC | float | Qualcomm®
|
| 72 |
-
| OpenAI-Clip | QNN_DLC | float |
|
| 73 |
-
| OpenAI-Clip | QNN_DLC | float | Snapdragon® 8 Elite
|
| 74 |
-
| OpenAI-Clip | TFLITE | float | Snapdragon® 8 Gen
|
| 75 |
-
| OpenAI-Clip | TFLITE | float |
|
| 76 |
-
| OpenAI-Clip | TFLITE | float | Qualcomm®
|
| 77 |
-
| OpenAI-Clip | TFLITE | float | Qualcomm®
|
| 78 |
-
| OpenAI-Clip | TFLITE | float | Qualcomm®
|
| 79 |
-
| OpenAI-Clip | TFLITE | float | Qualcomm®
|
| 80 |
-
| OpenAI-Clip | TFLITE | float | Qualcomm®
|
|
|
|
| 81 |
| OpenAI-Clip | TFLITE | float | Qualcomm® SA8295P | 21.252 ms | 0 - 495 MB | NPU
|
| 82 |
-
| OpenAI-Clip | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 9.
|
| 83 |
-
| OpenAI-Clip | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 6.928 ms | 0 - 496 MB | NPU
|
| 84 |
|
| 85 |
## License
|
| 86 |
* The license for the original implementation of OpenAI-Clip can be found
|
|
|
|
| 15 |
Contrastive Language-Image Pre-Training (CLIP) uses a ViT like transformer to get visual features and a causal language model to get the text features. Both the text and visual features can then be used for a variety of zero-shot learning tasks.
|
| 16 |
|
| 17 |
This is based on the implementation of OpenAI-Clip found [here](https://github.com/openai/CLIP/).
|
| 18 |
+
This repository contains pre-exported model files optimized for Qualcomm® devices. You can use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/tree/v0.49.1/qai_hub_models/models/openai_clip) library to export with custom configurations. More details on model performance across various devices, can be found [here](#performance-summary).
|
| 19 |
|
| 20 |
Qualcomm AI Hub Models uses [Qualcomm AI Hub Workbench](https://workbench.aihub.qualcomm.com) to compile, profile, and evaluate this model. [Sign up](https://myaccount.qualcomm.com/signup) to run these models on a hosted Qualcomm® device.
|
| 21 |
|
|
|
|
| 24 |
|
| 25 |
### Option 1: Download Pre-Exported Models
|
| 26 |
|
| 27 |
+
Below are pre-exported model assets ready for deployment.
|
| 28 |
+
|
| 29 |
+
| Runtime | Precision | Chipset | SDK Versions | Download |
|
| 30 |
+
|---|---|---|---|---|
|
| 31 |
+
| TFLITE | float | Universal | QAIRT 2.43, TFLite 2.17.0 | [Download](https://qaihub-public-assets.s3.us-west-2.amazonaws.com/qai-hub-models/models/openai_clip/releases/v0.49.1/openai_clip-tflite-float.zip)
|
| 32 |
+
|
| 33 |
+
For more device-specific assets and performance metrics, visit **[OpenAI-Clip on Qualcomm® AI Hub](https://aihub.qualcomm.com/models/openai_clip)**.
|
| 34 |
|
| 35 |
|
| 36 |
### Option 2: Export with Custom Configurations
|
| 37 |
|
| 38 |
+
Use the [Qualcomm® AI Hub Models](https://github.com/qualcomm/ai-hub-models/tree/v0.49.1/qai_hub_models/models/openai_clip) Python library to compile and export the model with your own:
|
| 39 |
- Custom weights (e.g., fine-tuned checkpoints)
|
| 40 |
- Custom input shapes
|
| 41 |
- Target device and runtime configurations
|
| 42 |
|
| 43 |
This option is ideal if you need to customize the model beyond the default configuration provided here.
|
| 44 |
|
| 45 |
+
See our repository for [OpenAI-Clip on GitHub](https://github.com/qualcomm/ai-hub-models/tree/v0.49.1/qai_hub_models/models/openai_clip) for usage instructions.
|
| 46 |
|
| 47 |
## Model Details
|
| 48 |
|
|
|
|
| 58 |
## Performance Summary
|
| 59 |
| Model | Runtime | Precision | Chipset | Inference Time (ms) | Peak Memory Range (MB) | Primary Compute Unit
|
| 60 |
|---|---|---|---|---|---|---
|
| 61 |
+
| OpenAI-Clip | ONNX | float | Snapdragon® 8 Elite Gen 5 Mobile | 7.002 ms | 1 - 497 MB | NPU
|
| 62 |
+
| OpenAI-Clip | ONNX | float | Snapdragon® X2 Elite | 7.214 ms | 291 - 291 MB | NPU
|
| 63 |
+
| OpenAI-Clip | ONNX | float | Snapdragon® X Elite | 16.49 ms | 291 - 291 MB | NPU
|
| 64 |
+
| OpenAI-Clip | ONNX | float | Snapdragon® 8 Gen 3 Mobile | 11.232 ms | 0 - 550 MB | NPU
|
| 65 |
+
| OpenAI-Clip | ONNX | float | Qualcomm® QCS8550 (Proxy) | 15.861 ms | 0 - 325 MB | NPU
|
| 66 |
+
| OpenAI-Clip | ONNX | float | Qualcomm® QCS9075 | 20.256 ms | 0 - 4 MB | NPU
|
| 67 |
+
| OpenAI-Clip | ONNX | float | Snapdragon® 8 Elite For Galaxy Mobile | 9.013 ms | 1 - 534 MB | NPU
|
| 68 |
+
| OpenAI-Clip | QNN_DLC | float | Snapdragon® 8 Elite Gen 5 Mobile | 8.339 ms | 1 - 487 MB | NPU
|
| 69 |
+
| OpenAI-Clip | QNN_DLC | float | Snapdragon® X2 Elite | 9.132 ms | 1 - 1 MB | NPU
|
| 70 |
+
| OpenAI-Clip | QNN_DLC | float | Snapdragon® X Elite | 18.815 ms | 1 - 1 MB | NPU
|
| 71 |
+
| OpenAI-Clip | QNN_DLC | float | Snapdragon® 8 Gen 3 Mobile | 12.527 ms | 0 - 551 MB | NPU
|
| 72 |
+
| OpenAI-Clip | QNN_DLC | float | Qualcomm® QCS8275 (Proxy) | 56.048 ms | 1 - 506 MB | NPU
|
| 73 |
+
| OpenAI-Clip | QNN_DLC | float | Qualcomm® QCS8550 (Proxy) | 17.844 ms | 1 - 586 MB | NPU
|
| 74 |
+
| OpenAI-Clip | QNN_DLC | float | Qualcomm® SA8775P | 20.943 ms | 1 - 504 MB | NPU
|
| 75 |
+
| OpenAI-Clip | QNN_DLC | float | Qualcomm® QCS9075 | 21.165 ms | 1 - 3 MB | NPU
|
| 76 |
+
| OpenAI-Clip | QNN_DLC | float | Qualcomm® QCS8450 (Proxy) | 21.001 ms | 0 - 502 MB | NPU
|
| 77 |
+
| OpenAI-Clip | QNN_DLC | float | Qualcomm® SA7255P | 56.048 ms | 1 - 506 MB | NPU
|
| 78 |
+
| OpenAI-Clip | QNN_DLC | float | Qualcomm® SA8295P | 22.062 ms | 0 - 496 MB | NPU
|
| 79 |
+
| OpenAI-Clip | QNN_DLC | float | Snapdragon® 8 Elite For Galaxy Mobile | 10.54 ms | 1 - 515 MB | NPU
|
| 80 |
+
| OpenAI-Clip | TFLITE | float | Snapdragon® 8 Elite Gen 5 Mobile | 6.925 ms | 0 - 495 MB | NPU
|
| 81 |
+
| OpenAI-Clip | TFLITE | float | Snapdragon® 8 Gen 3 Mobile | 11.082 ms | 0 - 556 MB | NPU
|
| 82 |
+
| OpenAI-Clip | TFLITE | float | Qualcomm® QCS8275 (Proxy) | 52.058 ms | 0 - 508 MB | NPU
|
| 83 |
+
| OpenAI-Clip | TFLITE | float | Qualcomm® QCS8550 (Proxy) | 15.273 ms | 0 - 3 MB | NPU
|
| 84 |
+
| OpenAI-Clip | TFLITE | float | Qualcomm® SA8775P | 18.655 ms | 0 - 507 MB | NPU
|
| 85 |
+
| OpenAI-Clip | TFLITE | float | Qualcomm® QCS9075 | 20.329 ms | 0 - 294 MB | NPU
|
| 86 |
+
| OpenAI-Clip | TFLITE | float | Qualcomm® QCS8450 (Proxy) | 20.243 ms | 0 - 501 MB | NPU
|
| 87 |
+
| OpenAI-Clip | TFLITE | float | Qualcomm® SA7255P | 52.058 ms | 0 - 508 MB | NPU
|
| 88 |
| OpenAI-Clip | TFLITE | float | Qualcomm® SA8295P | 21.252 ms | 0 - 495 MB | NPU
|
| 89 |
+
| OpenAI-Clip | TFLITE | float | Snapdragon® 8 Elite For Galaxy Mobile | 9.056 ms | 0 - 522 MB | NPU
|
|
|
|
| 90 |
|
| 91 |
## License
|
| 92 |
* The license for the original implementation of OpenAI-Clip can be found
|