Giter Club home page Giter Club logo

idn-pytorch-1's Introduction

IDN

This repository is implementation of the "Fast and Accurate Single Image Super-Resolution via Information Distillation Network".

Requirements

  • PyTorch
  • Tensorflow
  • tqdm
  • Numpy
  • Pillow

Tensorflow is required for quickly fetching image in training phase.

Results

Original BICUBIC x2 IDN x2

Usages

Train

When training begins, the model weights will be saved every epoch.
If you want to train quickly, you should use --use_fast_loader option.

python main.py --scale 2 \
               --num_features 64 \
               --d 16 \
               --s 4 \              
               --images_dir "" \
               --outputs_dir "" \               
               --patch_size 29 \
               --batch_size 16 \
               --num_epochs 20 \
               --lr 1e-4 \
               --loss "l1" \
               --threads 8 \
               --seed 123 \
               --use_fast_loader              

Fine-tuning

The fine-tuning artifacts are generated as "IDN_ft_epoch_{}.pth".

python main.py --scale 2 \
               --num_features 64 \
               --d 16 \
               --s 4 \              
               --images_dir "" \
               --outputs_dir "" \
               --weights_path "" \               
               --patch_size 39 \
               --batch_size 16 \
               --num_epochs 20 \
               --lr 1e-5 \
               --loss "l2" \
               --threads 8 \
               --seed 123 \
               --use_fast_loader              

Test

Output results consist of restored images by the BICUBIC and the IDN.

python example --scale 2 \
               --num_features 64 \
               --d 16 \
               --s 4 \              
               --weights_path "" \
               --image_path "" \
               --outputs_dir ""                              

idn-pytorch-1's People

Contributors

yjn870 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.