Skip to content

Latest commit

 

History

History

SRGAN

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

SRGAN

Introduction

SRGAN is an image super-resolution method, our code is inspired the paper (https://arxiv.org/pdf/1609.04802.pdf).

Installation

oneflow==0.1.10

Get started

Prepare data

Download VOC2012 dataset here (about 1.8G), unzip and put it in "./data". Preprocess images to generate *.npy .
python of_data_utils

If you do not want to preprocess images, you can directly download *.npy here, unzip and put it in "./data".

Train a model

To use the perceptual loss, you can download perceptual model(vgg16bn) here, unzip and put it in "./models". python of_srgan.py

Download pretrained model

If you just want to run test, you can download pretrained model here, unzip and put it in "./models".

Test a model

You can test an image or images with the same or different shape. python of_srgan.py --test

image