Skip to content

Implementation of SRResnet and SRGAN models on the DIV2K dataset. This project focuses on enhancing image resolution using state-of-the-art techniques, with certain hyperparameter modifications and gradient clipping to address computing power limitations and stabilize training.

License

Notifications You must be signed in to change notification settings

somerandomEthan/AMLSII_22-23_SN22081179

Repository files navigation

AMLSII_22-23_SN22081179

ELEC 0135 Applied Machine Learning Systems II aimed at solving the NTIRE 2017 super resolution challenge

1. Prerequisites

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:

AMLSII_22-23_SN22081179

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.

The environment

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

2. How to check the result of this project

If your server or computer is GPU ready

(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.

This means for task A the training sequence should be:

train_srresnet_A.py -> train_srgan_A.py

For task B the training sequence should be:

train_srresnet_B.py -> train_srgan_B.py

You can also just check the result by executing the eval funciton

For task A it would be executing:

For task B it would be executing:

To generate the image with subplot of upsamapled image and the original image for comparision run:

About

Implementation of SRResnet and SRGAN models on the DIV2K dataset. This project focuses on enhancing image resolution using state-of-the-art techniques, with certain hyperparameter modifications and gradient clipping to address computing power limitations and stabilize training.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages