Code Monkey home page Code Monkey logo

dgnl-net's Introduction

DGNL-Net

Single-Image Real-Time Rain Removal Based on Depth-Guided Non-Local Features

by Xiaowei Hu, Lei Zhu, Tianyu Wang, Chi-Wing Fu, and Pheng-Ann Heng

This implementation is written by Xiaowei Hu at the Chinese University of Hong Kong.


Please find the code of the conference version at https://github.com/xw-hu/DAF-Net.


RainCityscapes Dataset

Our RainCityscapes dataset is available for download at the Cityscapes website.

Citations

@article{hu2021single,
     title={Single-Image Real-Time Rain Removal Based on Depth-Guided Non-Local Features},
     author={Hu, Xiaowei and Zhu, Lei and Wang, Tianyu and Fu, Chi-Wing and Heng, Pheng-Ann},
     journal={IEEE Transactions on Image Processing},
     volume={30},
     pages={1759--1770},
     year={2021},
     publisher={IEEE}
}

@InProceedings{Hu_2019_CVPR,
     author = {Hu, Xiaowei and Fu, Chi-Wing and Zhu, Lei and Heng, Pheng-Ann},
     title = {Depth-Attentional Features for Single-Image Rain Removal},
     booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR)},
     pages={8022--8031},
     year = {2019}
}

Prerequisites

  • Python 3.5
  • PyTorch 1.0

Installation

Clone this repository:

git clone https://github.com/xw-hu/DGNL-Net.git

Test

  1. Please download our pretrained model at Google Drive.
    Put the model 40000.pth in ./ckpt/DGNLNet/.
    Put the model 60000.pth in ./ckpt/DGNLNet_fast/.

  2. Test the DGNL-Net or DGNL-Net-fast:

    python3 infer.py    
    python3 infer_fast.py    

Train

  1. Train the DGNL-Net model:

    python3 train.py    
  2. Train the DGNL-Net-fast model:

    python3 train_fast.py

Evaluation

Please find the evaluation code at https://github.com/xw-hu/DAF-Net.
Enter the DAF-Net/examples/ and run evaluate_raincityscapes.m in Matlab.

dgnl-net's People

Contributors

xw-hu 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.