GithubHelp home page GithubHelp logo

rdn-tensorflow's Introduction

RDN-Tensorflow

Reproduction of paper:Residual Dense Network for Image Super-Resolution

Requirements

  • python > 3.5
  • tensorflow > 1.0
  • scipy
  • numpy
  • pillow
  • scipy
  • tqdm

Train

Prepare training data

Download DIV2K training data.DIV2K

Begin to train

run sh run_train.sh

#!/usr/bin/env bash
CUDA_VISIBLE_DEVICES=0 python3 train.py \
                                 --dataset data/DIV2K \
                                 --imgsize 128 \
                                 --scale 4 \
                                 --globallayers 16 \
                                 --locallayers 8 \
                                 --featuresize 64 \
                                 --batchsize 10 \
                                 --savedir saved_models \
                                 --iterations 1000 \
                                 --usepre 0

Test

python3 test.py --dataset [image dir]

or

python3 test.py --image [single image path]

The architecture of residual dense network (RDN)

Global Residual Learning

Figure 1. The architecture of residual dense network (RDN).

Local Residual Learning

Figure 2. Residual dense block (RDB) architecture.

References

jmiller656/EDSR-Tensorflow

rdn-tensorflow's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

rdn-tensorflow's Issues

trained model

hi @seathiefwang
thank you for you great work in this project, unfortunately i forced to train with cpu to avoid my gpu memory limitation, but the training will take long time to done, so any chance to share your RDN trained model please

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.