GithubHelp home page GithubHelp logo

killsking / sadnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jimmychame/sadnet

0.0 1.0 0.0 4.19 MB

Pytorch code for "Spatial-Adaptive Network for Single Image Denoising"

Python 42.11% C++ 23.67% Cuda 34.22%

sadnet's Introduction

SADNet (ECCV, 2020)

By Meng Chang, Qi Li, Huajun Feng, Zhihai Xu

This is the official Pytorch implementation of "Spatial-Adaptive Network for Single Image Denoising" [Paper]

(Noting: The source code is a coarse version for reference and the model provided may not be optimal.)

Prerequisites

  • Python 3.6
  • Pytorch 1.1
  • CUDA 9.0

Get Started

Installation

The Deformable ConvNets V2 (DCNv2) module in our code adopts chengdazhi's implementation.

You can compile the code according to your machine.

cd ./dcn
python setup.py develop

Please make sure your machine has a GPU, which is required for the DCNv2 module.

Train

  1. Download the training dataset and use gen_dataset_*.py to package them in the h5py format.
  2. Place the h5py file in /dataset/train/ or set the 'src_path' in option.py to your own path.
  3. You can set any training parameters in option.py. After that, train the model:
cd $SADNet_ROOT
python train.py

Test

  1. Download the trained models from Google Drive and place them in /ckpt/.
  2. Place the testing dataset in /dataset/test/ or set the testing path in option.py to your own path.
  3. Set the parameters in option.py (eg. 'epoch_test', 'gray' and etc.)
  4. test the trained models:
cd $SADNet_ROOT
python test.py

Citation

If you find the code helpful in your research or work, please cite the following papers.

@article{chang2020spatial,
  title={Spatial-Adaptive Network for Single Image Denoising},
  author={Chang, Meng and Li, Qi and Feng, Huajun and Xu, Zhihai},
  journal={arXiv preprint arXiv:2001.10291},
  year={2020}
}

Acknowledgments

The DCNv2 module in our code adopts from chengdazhi's implementation.

sadnet's People

Contributors

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