Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
|
@@ -14,7 +14,7 @@ tags:
|
|
| 14 |
|
| 15 |
ESRGAN is a machine learning model that upscales an image with minimal loss in quality.
|
| 16 |
|
| 17 |
-
This model is an implementation of ESRGAN found [here](
|
| 18 |
This repository provides scripts to run ESRGAN on Qualcomm® devices.
|
| 19 |
More details on model performance across various devices, can be found
|
| 20 |
[here](https://aihub.qualcomm.com/models/esrgan).
|
|
@@ -29,15 +29,32 @@ More details on model performance across various devices, can be found
|
|
| 29 |
- Number of parameters: 16.7M
|
| 30 |
- Model size: 64.0 MB
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
-
| Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 36 |
-
| ---|---|---|---|---|---|---|---|
|
| 37 |
-
| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | TFLite | 70.5 ms | 3 - 6 MB | FP16 | NPU | [ESRGAN.tflite](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.tflite)
|
| 38 |
-
| Samsung Galaxy S23 Ultra (Android 13) | Snapdragon® 8 Gen 2 | QNN Model Library | 70.092 ms | 0 - 104 MB | FP16 | NPU | [ESRGAN.so](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.so)
|
| 39 |
-
|
| 40 |
-
|
| 41 |
|
| 42 |
## Installation
|
| 43 |
|
|
@@ -92,16 +109,16 @@ device. This script does the following:
|
|
| 92 |
```bash
|
| 93 |
python -m qai_hub_models.models.esrgan.export
|
| 94 |
```
|
| 95 |
-
|
| 96 |
```
|
| 97 |
-
|
| 98 |
-
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
|
|
|
| 105 |
```
|
| 106 |
|
| 107 |
|
|
@@ -200,15 +217,19 @@ provides instructions on how to use the `.so` shared library in an Android appl
|
|
| 200 |
Get more details on ESRGAN's performance across various devices [here](https://aihub.qualcomm.com/models/esrgan).
|
| 201 |
Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
|
| 202 |
|
|
|
|
| 203 |
## License
|
| 204 |
-
|
| 205 |
-
|
| 206 |
-
|
|
|
|
| 207 |
|
| 208 |
## References
|
| 209 |
* [ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks](https://arxiv.org/abs/1809.00219)
|
| 210 |
* [Source Model Implementation](https://github.com/xinntao/ESRGAN/)
|
| 211 |
|
|
|
|
|
|
|
| 212 |
## Community
|
| 213 |
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
|
| 214 |
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|
|
|
|
| 14 |
|
| 15 |
ESRGAN is a machine learning model that upscales an image with minimal loss in quality.
|
| 16 |
|
| 17 |
+
This model is an implementation of ESRGAN found [here]({source_repo}).
|
| 18 |
This repository provides scripts to run ESRGAN on Qualcomm® devices.
|
| 19 |
More details on model performance across various devices, can be found
|
| 20 |
[here](https://aihub.qualcomm.com/models/esrgan).
|
|
|
|
| 29 |
- Number of parameters: 16.7M
|
| 30 |
- Model size: 64.0 MB
|
| 31 |
|
| 32 |
+
| Model | Device | Chipset | Target Runtime | Inference Time (ms) | Peak Memory Range (MB) | Precision | Primary Compute Unit | Target Model
|
| 33 |
+
|---|---|---|---|---|---|---|---|---|
|
| 34 |
+
| ESRGAN | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | TFLITE | 67.448 ms | 3 - 6 MB | FP16 | NPU | [ESRGAN.tflite](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.tflite) |
|
| 35 |
+
| ESRGAN | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | QNN | 70.723 ms | 0 - 110 MB | FP16 | NPU | [ESRGAN.so](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.so) |
|
| 36 |
+
| ESRGAN | Samsung Galaxy S23 | Snapdragon® 8 Gen 2 | ONNX | 70.475 ms | 0 - 42 MB | FP16 | NPU | [ESRGAN.onnx](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.onnx) |
|
| 37 |
+
| ESRGAN | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | TFLITE | 55.287 ms | 3 - 659 MB | FP16 | NPU | [ESRGAN.tflite](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.tflite) |
|
| 38 |
+
| ESRGAN | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | QNN | 55.722 ms | 0 - 110 MB | FP16 | NPU | [ESRGAN.so](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.so) |
|
| 39 |
+
| ESRGAN | Samsung Galaxy S24 | Snapdragon® 8 Gen 3 | ONNX | 59.118 ms | 6 - 695 MB | FP16 | NPU | [ESRGAN.onnx](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.onnx) |
|
| 40 |
+
| ESRGAN | QCS8550 (Proxy) | QCS8550 Proxy | TFLITE | 60.535 ms | 3 - 807 MB | FP16 | NPU | [ESRGAN.tflite](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.tflite) |
|
| 41 |
+
| ESRGAN | QCS8550 (Proxy) | QCS8550 Proxy | QNN | 62.046 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
|
| 42 |
+
| ESRGAN | SA8255 (Proxy) | SA8255P Proxy | TFLITE | 64.451 ms | 3 - 8 MB | FP16 | NPU | [ESRGAN.tflite](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.tflite) |
|
| 43 |
+
| ESRGAN | SA8255 (Proxy) | SA8255P Proxy | QNN | 62.024 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
|
| 44 |
+
| ESRGAN | SA8775 (Proxy) | SA8775P Proxy | TFLITE | 68.788 ms | 3 - 6 MB | FP16 | NPU | [ESRGAN.tflite](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.tflite) |
|
| 45 |
+
| ESRGAN | SA8775 (Proxy) | SA8775P Proxy | QNN | 63.011 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
|
| 46 |
+
| ESRGAN | SA8650 (Proxy) | SA8650P Proxy | TFLITE | 64.819 ms | 3 - 6 MB | FP16 | NPU | [ESRGAN.tflite](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.tflite) |
|
| 47 |
+
| ESRGAN | SA8650 (Proxy) | SA8650P Proxy | QNN | 63.19 ms | 0 - 2 MB | FP16 | NPU | Use Export Script |
|
| 48 |
+
| ESRGAN | QCS8450 (Proxy) | QCS8450 Proxy | TFLITE | 136.101 ms | 3 - 619 MB | FP16 | NPU | [ESRGAN.tflite](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.tflite) |
|
| 49 |
+
| ESRGAN | QCS8450 (Proxy) | QCS8450 Proxy | QNN | 134.526 ms | 0 - 88 MB | FP16 | NPU | Use Export Script |
|
| 50 |
+
| ESRGAN | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | TFLITE | 42.308 ms | 0 - 180 MB | FP16 | NPU | [ESRGAN.tflite](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.tflite) |
|
| 51 |
+
| ESRGAN | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | QNN | 37.764 ms | 1 - 131 MB | FP16 | NPU | Use Export Script |
|
| 52 |
+
| ESRGAN | Snapdragon 8 Elite QRD | Snapdragon® 8 Elite | ONNX | 38.328 ms | 8 - 186 MB | FP16 | NPU | [ESRGAN.onnx](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.onnx) |
|
| 53 |
+
| ESRGAN | Snapdragon X Elite CRD | Snapdragon® X Elite | QNN | 64.824 ms | 0 - 0 MB | FP16 | NPU | Use Export Script |
|
| 54 |
+
| ESRGAN | Snapdragon X Elite CRD | Snapdragon® X Elite | ONNX | 65.67 ms | 38 - 38 MB | FP16 | NPU | [ESRGAN.onnx](https://huggingface.co/qualcomm/ESRGAN/blob/main/ESRGAN.onnx) |
|
| 55 |
|
| 56 |
|
| 57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 58 |
|
| 59 |
## Installation
|
| 60 |
|
|
|
|
| 109 |
```bash
|
| 110 |
python -m qai_hub_models.models.esrgan.export
|
| 111 |
```
|
|
|
|
| 112 |
```
|
| 113 |
+
Profiling Results
|
| 114 |
+
------------------------------------------------------------
|
| 115 |
+
ESRGAN
|
| 116 |
+
Device : Samsung Galaxy S23 (13)
|
| 117 |
+
Runtime : TFLITE
|
| 118 |
+
Estimated inference time (ms) : 67.4
|
| 119 |
+
Estimated peak memory usage (MB): [3, 6]
|
| 120 |
+
Total # Ops : 1024
|
| 121 |
+
Compute Unit(s) : NPU (1024 ops)
|
| 122 |
```
|
| 123 |
|
| 124 |
|
|
|
|
| 217 |
Get more details on ESRGAN's performance across various devices [here](https://aihub.qualcomm.com/models/esrgan).
|
| 218 |
Explore all available models on [Qualcomm® AI Hub](https://aihub.qualcomm.com/)
|
| 219 |
|
| 220 |
+
|
| 221 |
## License
|
| 222 |
+
* The license for the original implementation of ESRGAN can be found [here](https://github.com/xinntao/ESRGAN/blob/master/LICENSE).
|
| 223 |
+
* 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)
|
| 224 |
+
|
| 225 |
+
|
| 226 |
|
| 227 |
## References
|
| 228 |
* [ESRGAN: Enhanced Super-Resolution Generative Adversarial Networks](https://arxiv.org/abs/1809.00219)
|
| 229 |
* [Source Model Implementation](https://github.com/xinntao/ESRGAN/)
|
| 230 |
|
| 231 |
+
|
| 232 |
+
|
| 233 |
## Community
|
| 234 |
* Join [our AI Hub Slack community](https://aihub.qualcomm.com/community/slack) to collaborate, post questions and learn more about on-device AI.
|
| 235 |
* For questions or feedback please [reach out to us](mailto:ai-hub-support@qti.qualcomm.com).
|