chaitanya-basava / Single-image-dehazing-using-improved-cycleGAN

This is the code for the work "Single image dehazing using improved cycleGAN" published in the Journal of Visual Communication and Image Representation.

Home Page:https://www.sciencedirect.com/science/article/pii/S1047320320302248

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Single-image-dehazing-using-improved-cycleGAN

This is the code for the journal paper Single image dehazing using improved cycleGAN published in JVCI.

Acknowledgements

The base code of cycleGAN's implementation in tensorflow has been taken from this Repo by xhujoy. 😊

Dataset

  • Download and place the NYU or reside-Ξ² dataset's into dataset directory.
  • Split the hazy and clear images into train, test sets.
  • Rename the directory name containing the training images of hazy, clear images as trainA, trainB respectively.
  • Do the same for the corresponding directories containing the test set images.

The final file structure should be as follows

project
β”‚   README.md
β”‚   get_ssim.py
β”‚   main.py
β”‚   model.py
β”‚   module.py
β”‚   ops.py
β”‚   requirements.txt
β”‚   utils.py
β”‚
└───dataset
β”‚   └───<dataset_name>
β”‚       └───trainA
β”‚       |   | img1.jpg
β”‚       |   | img2.jpg
β”‚       |   | ...
β”‚       |
β”‚       └───trainB
β”‚       |   | img1.jpg
β”‚       |   | img2.jpg
β”‚       |   | ...
β”‚       |
β”‚       └───testA
β”‚       |   | img1.jpg
β”‚       |   | img2.jpg
β”‚       |   | ...
β”‚       |
β”‚       └───testB
β”‚           | img1.jpg
β”‚           | img2.jpg
β”‚           | ...
|
└───checkpoint
    └───<dataset_name>_<img size>

The rest of the directories required to store the saved model, sample results and log files will be created automatically when main.py is executed.

About

This is the code for the work "Single image dehazing using improved cycleGAN" published in the Journal of Visual Communication and Image Representation.

https://www.sciencedirect.com/science/article/pii/S1047320320302248


Languages

Language:Python 100.0%