GithubHelp home page GithubHelp logo

bonheurswp / dncnn-pytorch2 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from yjn870/dncnn-pytorch

0.0 0.0 0.0 4.18 MB

PyTorch implementation of Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoising (TIP 2017)

Home Page: https://arxiv.org/abs/1608.03981

Python 100.00%

dncnn-pytorch2's Introduction

DnCNN

This repository is implementation of the "Beyond a Gaussian Denoiser: Residual Learning of Deep CNN for Image Denoising".

Requirements

  • PyTorch
  • Tensorflow
  • tqdm
  • Numpy
  • Pillow

Tensorflow is required for quickly fetching image in training phase.

Results

The DnCNN-3 is only a single model for three general image denoising tasks, i.e., blind Gaussian denoising, SISR with multiple upscaling factors, and JPEG deblocking with different quality factors.

JPEG Artifacts (Quality 40) DnCNN-3
Gaussian Noise (Level 25) DnCNN-3
Super-Resolution (Scale x3) DnCNN-3

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.

DnCNN-S

python main.py --arch "DnCNN-S" \               
               --images_dir "" \
               --outputs_dir "" \
               --gaussian_noise_level 25 \
               --patch_size 50 \
               --batch_size 16 \
               --num_epochs 20 \
               --lr 1e-3 \
               --threads 8 \
               --seed 123 \
               --use_fast_loader              

DnCNN-B

python main.py --arch "DnCNN-B" \               
               --images_dir "" \
               --outputs_dir "" \
               --gaussian_noise_level 0,55 \
               --patch_size 50 \
               --batch_size 16 \
               --num_epochs 20 \
               --lr 1e-3 \
               --threads 8 \
               --seed 123 \
               --use_fast_loader              

DnCNN-3

python main.py --arch "DnCNN-3" \               
               --images_dir "" \
               --outputs_dir "" \
               --gaussian_noise_level 0,55 \
               --downsampling_factor 1,4 \
               --jpeg_quality 5,99 \
               --patch_size 50 \
               --batch_size 16 \
               --num_epochs 20 \
               --lr 1e-3 \
               --threads 8 \
               --seed 123 \
               --use_fast_loader              

Test

Output results consist of noisy image and denoised image.

python example --arch "DnCNN-S" \
               --weights_path "" \
               --image_path "" \
               --outputs_dir "" \
               --jpeg_quality 25               

dncnn-pytorch2's People

Contributors

yjn870 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.