Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -34,44 +34,44 @@ More details on model performance across various devices, can be found
|
|
| 34 |
|
| 35 |
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 36 |
|---|---|---|---|---|---|---|---|---|
|
| 37 |
-
| Real-ESRGAN-x4plus | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE |
|
| 38 |
-
| Real-ESRGAN-x4plus | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 65.
|
| 39 |
-
| Real-ESRGAN-x4plus | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX |
|
| 40 |
-
| Real-ESRGAN-x4plus | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE |
|
| 41 |
-
| Real-ESRGAN-x4plus | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN |
|
| 42 |
-
| Real-ESRGAN-x4plus | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX |
|
| 43 |
-
| Real-ESRGAN-x4plus | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE |
|
| 44 |
-
| Real-ESRGAN-x4plus | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 42.
|
| 45 |
-
| Real-ESRGAN-x4plus | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 43.
|
| 46 |
-
| Real-ESRGAN-x4plus | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 68.
|
| 47 |
-
| Real-ESRGAN-x4plus | QCS8550 (Proxy) | QCS8550 Proxy | QNN |
|
| 48 |
-
| Real-ESRGAN-x4plus | SA7255P ADP | SA7255P | TFLITE | 3550.
|
| 49 |
-
| Real-ESRGAN-x4plus |
|
| 50 |
-
| Real-ESRGAN-x4plus | SA8255 (Proxy) | SA8255P Proxy |
|
| 51 |
-
| Real-ESRGAN-x4plus |
|
| 52 |
-
| Real-ESRGAN-x4plus | SA8295P ADP | SA8295P |
|
| 53 |
-
| Real-ESRGAN-x4plus |
|
| 54 |
-
| Real-ESRGAN-x4plus | SA8650 (Proxy) | SA8650P Proxy |
|
| 55 |
-
| Real-ESRGAN-x4plus |
|
| 56 |
-
| Real-ESRGAN-x4plus | SA8775P ADP | SA8775P |
|
| 57 |
-
| Real-ESRGAN-x4plus |
|
| 58 |
-
| Real-ESRGAN-x4plus | QCS8450 (Proxy) | QCS8450 Proxy |
|
| 59 |
-
| Real-ESRGAN-x4plus |
|
| 60 |
-
| Real-ESRGAN-x4plus | Snapdragon X Elite CRD | Snapdragon® X Elite |
|
|
|
|
| 61 |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
## Installation
|
| 66 |
|
| 67 |
-
This model can be installed as a Python package via pip.
|
| 68 |
|
|
|
|
| 69 |
```bash
|
| 70 |
-
pip install "qai-hub-models[
|
| 71 |
```
|
| 72 |
|
| 73 |
|
| 74 |
-
|
| 75 |
## Configure Qualcomm® AI Hub to run this model on a cloud-hosted device
|
| 76 |
|
| 77 |
Sign-in to [Qualcomm® AI Hub](https://app.aihub.qualcomm.com/) with your
|
|
@@ -122,8 +122,8 @@ Profiling Results
|
|
| 122 |
Real-ESRGAN-x4plus
|
| 123 |
Device : Samsung Galaxy S23 (13)
|
| 124 |
Runtime : TFLITE
|
| 125 |
-
Estimated inference time (ms) :
|
| 126 |
-
Estimated peak memory usage (MB): [0,
|
| 127 |
Total # Ops : 1025
|
| 128 |
Compute Unit(s) : NPU (1025 ops)
|
| 129 |
```
|
|
@@ -150,7 +150,7 @@ from qai_hub_models.models.real_esrgan_x4plus import Model
|
|
| 150 |
torch_model = Model.from_pretrained()
|
| 151 |
|
| 152 |
# Device
|
| 153 |
-
device = hub.Device("Samsung Galaxy
|
| 154 |
|
| 155 |
# Trace model
|
| 156 |
input_shape = torch_model.get_input_spec()
|
|
@@ -242,7 +242,8 @@ Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
|
|
| 242 |
|
| 243 |
|
| 244 |
## License
|
| 245 |
-
* The license for the original implementation of Real-ESRGAN-x4plus can be found
|
|
|
|
| 246 |
* 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)
|
| 247 |
|
| 248 |
|
|
|
|
| 34 |
|
| 35 |
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 36 |
|---|---|---|---|---|---|---|---|---|
|
| 37 |
+
| Real-ESRGAN-x4plus | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 69.664 ms | 0 - 114 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 38 |
+
| Real-ESRGAN-x4plus | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 65.559 ms | 0 - 38 MB | FP16 | NPU | [Real-ESRGAN-x4plus.so](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.so) |
|
| 39 |
+
| Real-ESRGAN-x4plus | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 68.807 ms | 1 - 107 MB | FP16 | NPU | [Real-ESRGAN-x4plus.onnx](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.onnx) |
|
| 40 |
+
| Real-ESRGAN-x4plus | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 53.682 ms | 1 - 111 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 41 |
+
| Real-ESRGAN-x4plus | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 49.852 ms | 0 - 105 MB | FP16 | NPU | [Real-ESRGAN-x4plus.so](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.so) |
|
| 42 |
+
| Real-ESRGAN-x4plus | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 52.425 ms | 6 - 173 MB | FP16 | NPU | [Real-ESRGAN-x4plus.onnx](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.onnx) |
|
| 43 |
+
| Real-ESRGAN-x4plus | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 40.361 ms | 3 - 137 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 44 |
+
| Real-ESRGAN-x4plus | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 42.94 ms | 0 - 131 MB | FP16 | NPU | Use Export Script |
|
| 45 |
+
| Real-ESRGAN-x4plus | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 43.209 ms | 6 - 134 MB | FP16 | NPU | [Real-ESRGAN-x4plus.onnx](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.onnx) |
|
| 46 |
+
| Real-ESRGAN-x4plus | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 68.926 ms | 0 - 113 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 47 |
+
| Real-ESRGAN-x4plus | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 63.373 ms | 0 - 3 MB | FP16 | NPU | Use Export Script |
|
| 48 |
+
| Real-ESRGAN-x4plus | SA7255P ADP | SA7255P | TFLITE | 3550.32 ms | 0 - 134 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 49 |
+
| Real-ESRGAN-x4plus | SA7255P ADP | SA7255P | QNN | 3549.238 ms | 1 - 10 MB | FP16 | NPU | Use Export Script |
|
| 50 |
+
| Real-ESRGAN-x4plus | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 67.393 ms | 0 - 212 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 51 |
+
| Real-ESRGAN-x4plus | SA8255 (Proxy) | SA8255P Proxy | QNN | 67.061 ms | 0 - 3 MB | FP16 | NPU | Use Export Script |
|
| 52 |
+
| Real-ESRGAN-x4plus | SA8295P ADP | SA8295P | TFLITE | 114.344 ms | 3 - 130 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 53 |
+
| Real-ESRGAN-x4plus | SA8295P ADP | SA8295P | QNN | 112.232 ms | 0 - 15 MB | FP16 | NPU | Use Export Script |
|
| 54 |
+
| Real-ESRGAN-x4plus | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 74.08 ms | 3 - 43 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 55 |
+
| Real-ESRGAN-x4plus | SA8650 (Proxy) | SA8650P Proxy | QNN | 65.413 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
|
| 56 |
+
| Real-ESRGAN-x4plus | SA8775P ADP | SA8775P | TFLITE | 132.831 ms | 3 - 137 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 57 |
+
| Real-ESRGAN-x4plus | SA8775P ADP | SA8775P | QNN | 131.078 ms | 0 - 10 MB | FP16 | NPU | Use Export Script |
|
| 58 |
+
| Real-ESRGAN-x4plus | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 146.131 ms | 3 - 108 MB | FP16 | NPU | [Real-ESRGAN-x4plus.tflite](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.tflite) |
|
| 59 |
+
| Real-ESRGAN-x4plus | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 147.462 ms | 0 - 88 MB | FP16 | NPU | Use Export Script |
|
| 60 |
+
| Real-ESRGAN-x4plus | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 64.975 ms | 0 - 0 MB | FP16 | NPU | Use Export Script |
|
| 61 |
+
| Real-ESRGAN-x4plus | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 65.748 ms | 39 - 39 MB | FP16 | NPU | [Real-ESRGAN-x4plus.onnx](https://huggingface.co/qualcomm/Real-ESRGAN-x4plus/blob/main/Real-ESRGAN-x4plus.onnx) |
|
| 62 |
|
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
## Installation
|
| 67 |
|
|
|
|
| 68 |
|
| 69 |
+
Install the package via pip:
|
| 70 |
```bash
|
| 71 |
+
pip install "qai-hub-models[real-esrgan-x4plus]"
|
| 72 |
```
|
| 73 |
|
| 74 |
|
|
|
|
| 75 |
## Configure Qualcomm® AI Hub to run this model on a cloud-hosted device
|
| 76 |
|
| 77 |
Sign-in to [Qualcomm® AI Hub](https://app.aihub.qualcomm.com/) with your
|
|
|
|
| 122 |
Real-ESRGAN-x4plus
|
| 123 |
Device : Samsung Galaxy S23 (13)
|
| 124 |
Runtime : TFLITE
|
| 125 |
+
Estimated inference time (ms) : 69.7
|
| 126 |
+
Estimated peak memory usage (MB): [0, 114]
|
| 127 |
Total # Ops : 1025
|
| 128 |
Compute Unit(s) : NPU (1025 ops)
|
| 129 |
```
|
|
|
|
| 150 |
torch_model = Model.from_pretrained()
|
| 151 |
|
| 152 |
# Device
|
| 153 |
+
device = hub.Device("Samsung Galaxy S24")
|
| 154 |
|
| 155 |
# Trace model
|
| 156 |
input_shape = torch_model.get_input_spec()
|
|
|
|
| 242 |
|
| 243 |
|
| 244 |
## License
|
| 245 |
+
* The license for the original implementation of Real-ESRGAN-x4plus can be found
|
| 246 |
+
[here](https://github.com/xinntao/Real-ESRGAN/blob/master/LICENSE).
|
| 247 |
* 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)
|
| 248 |
|
| 249 |
|