Code Monkey home page Code Monkey logo

cdncnn-b-tensorflow's Introduction

CDnCNN-B for blind color image denoising - Tensorflow implementation

This model is trained for blind denoising at multiple noise levels ([0, 55]).

DnCNN paper (TIP 2017)

Results on CBSD68 dataset

CBSD68

Noise Level CBM3D CDnCNN-B
25 30.70 31.23
50 27.38 27.97

Getting Started

This code was tested with Python 2.7. It is highly recommended to use the GPU version of Tensorflow for fast training.

Prerequisites

natsort==5.4.1
numpy==1.14.5
tensorflow==1.10.0
Pillow==5.4.1

Training the network

First, 128x3000 patches are extracted from the CBSD432 images as follows:

python2 generate_patches_rgb_blind.py

Then train the network:

python2 main_blind.py --phase train

You can also control other paramaters such as batch size, number of epochs. More info inside main.py.

The checkpoints are saved in ./checkpoint folder. Denoised validation images are saved after each epoch in ./sample folder.

Tensorboard summaries

tensorboard --logdir=./logs

Testing using the trained network

To test the network for sigma=50:

python2 main_blind.py --phase test --sigma 50.0

Denoised images are saved in ./test folder.

Reference

  • Code structure follows the repository DnCNN-Tensorflow of @crisb-DUT (dataset import and feeding, loading checkpoints etc.).

cdncnn-b-tensorflow's People

Contributors

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