Update README.md
Browse files
README.md
CHANGED
|
@@ -3,6 +3,7 @@ tags:
|
|
| 3 |
- HiT-SR
|
| 4 |
- image super-resolution
|
| 5 |
- transformer
|
|
|
|
| 6 |
---
|
| 7 |
|
| 8 |
<h1>
|
|
@@ -33,7 +34,7 @@ For each HiT-SR model, we provide 2x, 3x, 4x upscaling versions:
|
|
| 33 |
| `XiangZ/hit-sng-2x` | | HiT-SNG | | 2x |
|
| 34 |
| `XiangZ/hit-sng-3x` | | HiT-SNG | | 3x |
|
| 35 |
| `XiangZ/hit-sng-4x` | | HiT-SNG | | 4x |
|
| 36 |
-
| `XiangZ/hit-srf-2x` | | HiT-
|
| 37 |
| `XiangZ/hit-srf-3x` | | HiT-SRF | | 3x |
|
| 38 |
| `XiangZ/hit-srf-4x` | | HiT-SRF | | 4x |
|
| 39 |
|
|
@@ -57,8 +58,7 @@ if cuda_flag:
|
|
| 57 |
model.cuda()
|
| 58 |
|
| 59 |
## test and save results
|
| 60 |
-
|
| 61 |
-
sr_results = model.infer_image(image_path, cuda=cuda_flag)
|
| 62 |
cv2.imwrite("path-to-output-location", sr_results)
|
| 63 |
```
|
| 64 |
|
|
|
|
| 3 |
- HiT-SR
|
| 4 |
- image super-resolution
|
| 5 |
- transformer
|
| 6 |
+
- efficient transformer
|
| 7 |
---
|
| 8 |
|
| 9 |
<h1>
|
|
|
|
| 34 |
| `XiangZ/hit-sng-2x` | | HiT-SNG | | 2x |
|
| 35 |
| `XiangZ/hit-sng-3x` | | HiT-SNG | | 3x |
|
| 36 |
| `XiangZ/hit-sng-4x` | | HiT-SNG | | 4x |
|
| 37 |
+
| `XiangZ/hit-srf-2x` | | HiT-SRF | | 2x |
|
| 38 |
| `XiangZ/hit-srf-3x` | | HiT-SRF | | 3x |
|
| 39 |
| `XiangZ/hit-srf-4x` | | HiT-SRF | | 4x |
|
| 40 |
|
|
|
|
| 58 |
model.cuda()
|
| 59 |
|
| 60 |
## test and save results
|
| 61 |
+
sr_results = model.infer_image("path-to-input-image", cuda=cuda_flag)
|
|
|
|
| 62 |
cv2.imwrite("path-to-output-location", sr_results)
|
| 63 |
```
|
| 64 |
|