Skip to content

Official Pytorch implementation of the paper Learning Multiple Probabilistic Degradation Generators for Unsupervised Real World Image Super Resolution, ECCVW 2022

Notifications You must be signed in to change notification settings

sangyun884/MSSR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is the codebase for our paper “Learning Multiple Probabilistic Degradation Generators for Unsupervised Real World Image Super Resolution", ECCVW 2022. Tested environment : Pytorch 1.7.1, cuda 10.1.

Learning Multiple Probabilistic Degradation Generators for Unsupervised Real World Image Super Resolution
Sangyun Lee1, Sewoong Ahn2, Kwangjin Yoon2

1Soongsil University, 2SI Analytics

Paper: https://arxiv.org/abs/2201.10747

Abstract: Unsupervised real world super resolution (USR) aims to restore high-resolution (HR) images given low-resolution (LR) inputs, and its difficulty stems from the absence of paired dataset. One of the most common approaches is synthesizing noisy LR images using GANs (i.e., degradation generators) and utilizing a synthetic dataset to train the model in a supervised manner. Although the goal of training the degradation generator is to approximate the distribution of LR images given a HR image, previous works have heavily relied on the unrealistic assumption that the conditional distribution is a delta function and learned the deterministic mapping from the HR image to a LR image. In this paper, we show that we can improve the performance of USR models by relaxing the assumption and propose to train the probabilistic degradation generator. Our probabilistic degradation generator can be viewed as a deep hierarchical latent variable model and is more suitable for modeling the complex conditional distribution. We also reveal the notable connection with the noise injection of StyleGAN. Furthermore, we train multiple degradation generators to improve the mode coverage and apply collaborative learning for ease of training. We outperform several baselines on benchmark datasets in terms of PSNR and SSIM and demonstrate the robustness of our method on unseen data distribution.

Stage 1 : Training probabilistic degradation generators

First, you need to install pytorch_wavelet.

$ cd ./degradation/codes
$ git clone https://github.com/fbcotter/pytorch_wavelets
$ cd pytorch_wavelets
$ pip install .

Next, specify the directories to datasets in MSSR/degradation/paths.yml. Now, we are ready to train.

DeResnet

cd ./degradation/codes and enter

# AIM2019
python3 train.py --gpu k --dataset aim2019 --artifact tdsr --batch_size 8 --flips --rotations --generator DeResnet --filter wavelet --save_path ./test --noise_std 0.1 --num_epoch 500

# NTIRE2020
python3 train.py --gpu k --dataset mydsn --artifact a --batch_size 8 --flips --rotations --generator DeResnet --filter wavelet --save_path ./test --noise_std 0.1 --num_epoch 500

HAN

# AIM2019
python3 train.py --gpu k --dataset aim2019 --artifact tdsr --batch_size 4 --flips --rotations --generator han --filter wavelet --save_path YOUR_LOG_PATH --noise_std 0.1 --num_epoch 500 --learning_rate 0.00001

# NTIRE2020
python3 train.py --gpu k --dataset mydsn --artifact a --batch_size 4 --flips --rotations --generator han --filter wavelet --save_path YOUR_LOG_PATH --noise_std 0.1 --num_epoch 500 --learning_rate 0.00001

Stage 2 : Training super resolution network

You should download the pre-trained ESRGAN checkpoint from here. After downloaded, go to MSSR/sr/config_cont.json and configure the overall training as well as the first degradation generator. Change MSSR/sr/config_cont2.json for the second degradation generator (the other arguments that you already specified in MSSR/sr/config_cont.jsonhave no effect on training). Finally, enter

python3 contsr_train.py

Acknowledgement

We build our code on DASR and BasicSR repositories.

About

Official Pytorch implementation of the paper Learning Multiple Probabilistic Degradation Generators for Unsupervised Real World Image Super Resolution, ECCVW 2022

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published