lzxlog commited on
Commit
3767934
·
1 Parent(s): 7f000c0

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +76 -0
README.md ADDED
@@ -0,0 +1,76 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Original github repo is [here](https://github.com/greatlog/RealDAN)
2
+
3
+ If this repo works for you, please cite our paper
4
+ ```bitex
5
+ @article{luo2023end,
6
+ title={End-to-end Alternating Optimization for Real-World Blind Super Resolution},
7
+ author={Luo, Zhengxiong and Huang, Yan and Li, Shang and Wang, Liang and Tan, Tieniu},
8
+ journal={International Journal of Computer Vision (IJCV)},
9
+ year={2023}
10
+ }
11
+ ```
12
+
13
+ This repo is buid on the basis of [BasicSR](https://github.com/XPixelGroup/BasicSR)
14
+
15
+ ## Model Weights
16
+ Download the checkpoints of RealDAN.
17
+
18
+ Put the downloaded checkpoints into [checkpoints](./checkpoints)
19
+
20
+
21
+ ## Inference
22
+
23
+ For inference on Real-World images
24
+
25
+ ```bash
26
+ cd codes/config/RealDAN
27
+ python3 inference.py \
28
+ --opt options/test/dan_edsr_gan_real.yml \
29
+ --input_dir=/dir/of/input/images \
30
+ --output_dir=/dir/of/saved/outputs
31
+ ```
32
+
33
+ For inference on blurry images
34
+
35
+ ```bash
36
+ cd codes/config/KernelDAN
37
+ python3 inference.py \
38
+ --opt options/test/x4.yml \
39
+ --input_dir=/dir/of/input/images \
40
+ --output_dir=/dir/of/saved/outputs
41
+ ```
42
+
43
+ ## Evaluation
44
+
45
+ For evaluation on DIV2K-Real, please download the dataset to your own path, and run
46
+
47
+ ```bash
48
+ cd codes/config/RealDAN
49
+ python3 test.py \
50
+ --opt options/test/dan_edsr_gan_syn.yml
51
+ ```
52
+
53
+ and
54
+
55
+ ```bash
56
+ cd codes/config/RealDAN
57
+ python3 test.py \
58
+ --opt options/test/dan_edsr_syn.yml
59
+ ```
60
+
61
+
62
+ For evaluation on DIV2KRK, please download the [dataset](http://www.wisdom.weizmann.ac.il/~vision/kernelgan/DIV2KRK_public.zip) to your own path, and run
63
+
64
+ ```bash
65
+ cd codes/config/KernelDAN
66
+ python3 test.py \
67
+ --opt options/test/x2.yml
68
+ ```
69
+
70
+ and
71
+
72
+ ```bash
73
+ cd codes/config/KernelDAN
74
+ python3 test.py \
75
+ --opt options/test/x4.yml
76
+ ```