Code Monkey home page Code Monkey logo

nonhomogeneous_image_dehazing's Introduction

Fast Deep Multi-patch Hierarchical Network for Nonhomogeneous Image Dehazing

The code for implementing the "Fast Deep Multi-patch Hierarchical Network for Nonhomogeneous Image Dehazing" (Accepted at NTIRE Workshop, CVPR 2020).

Preprint: https://arxiv.org/abs/2005.05999

Highlights

  • Lightweight: The proposed system is very lightweight as the total size of the model is around 21.7 MB.
  • Robust: it is quite robust for different environments with various density of the haze or fog in the scene.
  • Fast: it can process an HD image in 0.0145 seconds on average and can dehaze images from a video sequence in real-time.

Getting Started

For training, image paths for train, val and test data should be listed in text file (example. for image patch level traning, coresponding hazed and ground truth image paths are listed in text file with path ./new_dataset/train_patch_gt.txt). Pretrained models are given in the checkpoints2/DMSHN_1_2_4 and checkpoints/DMPHN_1_2_4path for demo.

Prerequisites

  • Pytorch
  • Scikit-image
  • Numpy
  • Scipy
  • OpenCV

Running the tests

For model Inference, run following commands

# for Deep Multi-Patch Hierarchical Network
python DMPHN_test.py

# for Deep Multi-Scale Hierarchical Network
python DMSHN_test.py

Running the Training

For model training, run following commands

# for Deep Multi-Patch Hierarchical Network
python DMPHN_train.py

# for Deep Multi-Scale Hierarchical Network
python DMSHN_train.py

Quantitative Results

Qualitative Results

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Citation

Please consider citing our paper in your publications if the project helps your research. BibTeX reference is as follows.

@InProceedings{ Das_fast_deep_2020,
author = {Sourya Dipta Das and Saikat Dutta},
title = {Fast Deep Multi-patch Hierarchical Network for Nonhomogeneous Image Dehazing},
booktitle = {The IEEE Conference on Computer Vision and Pattern Recognition (CVPR) Workshops},
month = {June},
year = {2020}
}

nonhomogeneous_image_dehazing's People

Contributors

diptamath avatar saikatdutta 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.