ELEC 0135 Applied Machine Learning Systems II aimed at solving the NTIRE 2017 super resolution challenge
To Begin with, it is required to clone this project or download to your computer or server. The structure of the folders are as follows:
- A/
- B/
- Datasets/
- DIV2K_train_HR/
- DIV2K_train_LR_bicubic_X2/
- DIV2K_train_LR_unknown/
- DIV2K_valid_HR/
- DIV2K_valid_LR_bicubic_X2/
- DIV2K_valid_LR_unknown/
- src/
- checkpoint_srgan_A.pth.tar
- checkpoint_srgan_B.pth.tar
- checkpoint_srresnet_A.pth.tar
- checkpoint_srresnet_B.pth.tar
- eval_srgan_A.py
- eval_srgan_B.py
- eval_srresnet_A.py
- eval_srresnet_B.py
- super_resolve_A.py
- train_srgan_A.py
- train_srgan_B.py
- train_srresnet_A.py
- train_srresnet_B.py
- super_resolve_A.py
The folder Datasets is not included, you can either download the required Datesets according to the file tree or you can download the zip file here. The checkpoints can also be downloaded here in case you accidentally updated the original one during the training process.
My advice is to create a new conda environment from the environment.yml
file in this repo environment.yml
You can simply do it by:
conda env create -f environment.yml
(For the project I used turin.ee.ucl.ac.uk, I checked whether it woeks on this server, I strongly suggest that you test the project on the server) You can simply check by input:
torch.cuda.is_available()
If the output is True
, then congratulation that you can start from the training by exectuting the corresponding file to solve the Task A and B. However, you should always train the SRResnet before training the SRGAN as the weights of SRResnet are needed when training SRGAN.