Senn6x is an experimental Residual Channel Attention Network designed for Image Super-Resolution.
The code is built on RCAN and the model was trained on the DIV2K dataset.
- Python 3
- PyTorch >= 1.0.0
- numpy
- skimage
- imageio
- matplotlib
- tqdm
Clone this repository.
git clone https://github.com/Senn1/Senn6x
cd Senn6x
-
- Download the DIV2K dataset here
-
- Set the directory to the HR (high resolution) and LR (Low Resolution) paths
-
- CD to 'Trainingcode/model'
-
- Run the trainmain.py script
python trainmain.py
-
- Download the pretrained models here
-
- CD to 'testcode/model'
Run these following scripts:
python main.py --model san --data_test MyImage --save `save_name` --scale 2 ../model/Senn_BIX2.pt
python main.py --model senn6x --data_test MyImage --save `save_name` --scale 4 ../model/Senn_BIX4.pt
python main.py --model senn6x --data_test MyImage --save `save_name` --scale 6 ../model/Senn_BIX6.pt
The results are in the /results folder. Test results for popular datasets can also be downloaded here. (placeholder link)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.