463465810cz commited on
Commit ·
eacfbd6
1
Parent(s): 9c116e0
ICCV 20223
Browse filesFormer-commit-id: 1a73f9bf22ef47e51ade315e044a587fe66d701f
README.md
CHANGED
|
@@ -93,13 +93,17 @@ The performance is reported on Urban100 (x4). The test input size of FLOPs is 12
|
|
| 93 |
|
| 94 |
## Testing
|
| 95 |
|
|
|
|
|
|
|
| 96 |
- Download the pre-trained [models](https://drive.google.com/drive/folders/1iBdf_-LVZuz_PAbFtuxSKd_11RL1YKxM?usp=drive_link) and place them in `experiments/pretrained_models/`.
|
| 97 |
|
| 98 |
We provide pre-trained models for image SR: DAT-S, DAT, and DAT-2 (x2, x3, x4).
|
| 99 |
|
| 100 |
- Download [testing](https://drive.google.com/file/d/1yMbItvFKVaCT93yPWmlP3883XtJ-wSee/view?usp=sharing) (Set5, Set14, BSD100, Urban100, Manga109) datasets, place them in `datasets/`.
|
| 101 |
|
| 102 |
-
- Run the following scripts. The testing configuration is in `options/test/`.
|
|
|
|
|
|
|
| 103 |
|
| 104 |
```shell
|
| 105 |
# No self-ensemble
|
|
@@ -121,6 +125,28 @@ The performance is reported on Urban100 (x4). The test input size of FLOPs is 12
|
|
| 121 |
|
| 122 |
- The output is in `results/`.
|
| 123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 124 |
## Results
|
| 125 |
|
| 126 |
We achieved state-of-the-art performance. Detailed results can be found in the paper. All visual results of DAT can be downloaded [here](https://drive.google.com/drive/folders/1ZMaZyCer44ZX6tdcDmjIrc_hSsKoMKg2?usp=drive_link).
|
|
|
|
| 93 |
|
| 94 |
## Testing
|
| 95 |
|
| 96 |
+
### Test images with HR
|
| 97 |
+
|
| 98 |
- Download the pre-trained [models](https://drive.google.com/drive/folders/1iBdf_-LVZuz_PAbFtuxSKd_11RL1YKxM?usp=drive_link) and place them in `experiments/pretrained_models/`.
|
| 99 |
|
| 100 |
We provide pre-trained models for image SR: DAT-S, DAT, and DAT-2 (x2, x3, x4).
|
| 101 |
|
| 102 |
- Download [testing](https://drive.google.com/file/d/1yMbItvFKVaCT93yPWmlP3883XtJ-wSee/view?usp=sharing) (Set5, Set14, BSD100, Urban100, Manga109) datasets, place them in `datasets/`.
|
| 103 |
|
| 104 |
+
- Run the following scripts. The testing configuration is in `options/test/` (e.g., [test_DAT_x2.yml](options/Test/test_DAT_x2.yml)).
|
| 105 |
+
|
| 106 |
+
Note 1: You can set `use_chop: True` (default: False) in YML to chop the image for testing.
|
| 107 |
|
| 108 |
```shell
|
| 109 |
# No self-ensemble
|
|
|
|
| 125 |
|
| 126 |
- The output is in `results/`.
|
| 127 |
|
| 128 |
+
### Test images without HR
|
| 129 |
+
|
| 130 |
+
- Download the pre-trained [models](https://drive.google.com/drive/folders/1iBdf_-LVZuz_PAbFtuxSKd_11RL1YKxM?usp=drive_link) and place them in `experiments/pretrained_models/`.
|
| 131 |
+
|
| 132 |
+
We provide pre-trained models for image SR: DAT-S, DAT, and DAT-2 (x2, x3, x4).
|
| 133 |
+
|
| 134 |
+
- Put your dataset (single LR images) in `datasets/single`. Some test images are in this folder.
|
| 135 |
+
|
| 136 |
+
- Run the following scripts. The testing configuration is in `options/test/` (e.g., [test_single_x2.yml](options/Test/test_single_x2.yml)).
|
| 137 |
+
|
| 138 |
+
Note 1: The default model is DAT. You can use other models like DAT-S by modifying the YML.
|
| 139 |
+
Note 2: You can set `use_chop: True` (default: False) in YML to chop the image for testing.
|
| 140 |
+
|
| 141 |
+
```shell
|
| 142 |
+
# Test on your dataset
|
| 143 |
+
python basicsr/test.py -opt options/Test/test_single_x2.yml
|
| 144 |
+
python basicsr/test.py -opt options/Test/test_single_x3.yml
|
| 145 |
+
python basicsr/test.py -opt options/Test/test_single_x4.yml
|
| 146 |
+
```
|
| 147 |
+
|
| 148 |
+
- The output is in `results/`.
|
| 149 |
+
|
| 150 |
## Results
|
| 151 |
|
| 152 |
We achieved state-of-the-art performance. Detailed results can be found in the paper. All visual results of DAT can be downloaded [here](https://drive.google.com/drive/folders/1ZMaZyCer44ZX6tdcDmjIrc_hSsKoMKg2?usp=drive_link).
|