Code Monkey home page Code Monkey logo

derain_oucd_net's Introduction

Derain_OUCD_Net

Official Pytorch Code for "Exploring Overcomplete Representations for Single Image Deraining using CNNs" - IEEE Journal of Selected Topics in Signal Processing

Paper

Prerequisites

  • Python >= 3.6
  • Pytorch >= 1.0
  • Torchvision >= 0.2.2
  • Numpy >= 1.14.3

Pytorch Installation

Datasets-Link:

  1. Rain800
  2. JORDER
  3. SPANet

Using the Code

Clone the repository

git clone https://github.com/jeya-maria-jose/Derain_OUCD_Net
cd Derain_OUCD_Net

Dataset structure

  1. Download the rain datasets and arrange the rainy images and clean images in the following order
  2. Save the image names into text file (dataset_filename.txt)
   .
    ├── data 
    |   ├── train # Training  
    |   |   ├── derain        
    |   |   |   ├── <dataset_name>   
    |   |   |   |   ├── rain              # rain images 
    |   |   |   |   └── norain            # clean images
    |   |   |   └── dataset_filename.txt
    |   └── test  # Testing
    |   |   ├── derain         
    |   |   |   ├── <dataset_name>          
    |   |   |   |   ├── rain              # rain images 
    |   |   |   |   └── norain            # clean images
    |   |   |   └── dataset_filename.txt

Choosing the dataset

Mention the txt file of the dataset in line 13 of train_data.py and val_data.py, for example

   train_list = train_data_dir + train_filename + "rain800.txt"
   val_list = val_data_dir + 'val_list_rain800.txt'

Training Command

python train.py -net OUCD -category derain -train_batch_size 2 -save_dir rain800_OUCD -num_epochs 200

Testing Command

Choose the model you want to load from the checkpoint. Change the epoch and bestp variables with the model you need to test. Then, run

python test.py -category derain -exp_name OUCD

Citation

@misc{yasarla2020exploring,
      title={Exploring Overcomplete Representations for Single Image Deraining using CNNs}, 
      author={Rajeev Yasarla and Jeya Maria Jose Valanarasu and Vishal M. Patel},
      year={2020},
      eprint={2010.10661},
      archivePrefix={arXiv},
      primaryClass={eess.IV}
}

derain_oucd_net's People

Contributors

jeya-maria-jose avatar rajeevyasarla avatar

Watchers

 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.