Skip to content

Project work for Deepl Learning Lectures. Use GAN for superresolution

License

Notifications You must be signed in to change notification settings

PierreSp/DL4CV_2017_Final_Project

Repository files navigation

Super-Resolution with GANs

Based on the paper Photo-Realistic Single Image Super-Resolution Using a Generative Adversarial Network.
Related work: https://github.com/leftthomas/SRGAN.

Datasets

Setup

  1. Install pytorch as described on their website
  2. pip install -r requirements.txt
  3. Execute the setup script to download the VOC2012 and DIV2k data and partition them into train test and validation sets

Usage

  • Load images to data/val and data/train folder
  • Run python srgan/train.py --upscale_factor 4 All options can be found with train --help
  • Find outcome pictures in results/val folder
  • Find statics (PSNR, SSIM,...) in logs/statistics
  • The weights will be saved in log/epochs/
  • For testing load files to the data/test folder and run '''test.py''' with the trained weights as parameter
  • After several runs run the cleanupscript to remove half of all validation pictures and weights
  • Run python srgan/use_webcam.py to use the network for generating sr pictures from webcam pictures. Press space for generation and closing the transformed image window. Escape for closing the program

About

Project work for Deepl Learning Lectures. Use GAN for superresolution

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •