GMAN(Jan, 2018 - June, 2018 & Dec, 2018 - Now)
Introduction
GMAN is a awesome Convolutional neural network purposed on haze removal. It is a completely end-to-end dehaze system so the input to the system is hazed rgb images and the output of the system is the clear images that processed by the system. The results can be found in the Results column, where lists our evaluation results on SOTS evaluation dataset. There lists 500 images for indoor test and 500 images for outdoor test saparately, in each file, we can also find a log.txt file showing the psnr and ssim for each images.
Dateset | PSNR(dB) | SSIM | Model Path | Link to result |
---|---|---|---|---|
SOTS outdoor | 28.474217 | 0.944434 | click me | click me |
SOTS indoor | 27.934801 | 0.896512 | click me | click me |
How to use?
- Step 1:
- You need to install all packages required by the program, such as tensorflow(GPU version), numpy etc.
- You need to download current repository into your local environment and extract it.
- Step 2:
- Go to your local file and enter the setup.sh file. Change the line 14, "PROGRAM_ROOT_PATH=''" to the path you want.
- Run
sh setup.sh
, it will automatically create the directories for running the program
Evaluate your own image
- Step 3:
- Move the hazed images to (PROGRAM_ROOT_PATH)/HazeImages/TestImages.
- If you have ground truth images to compare with the pictures processed by the net, move them to (PROGRAM_ROOT_PATH)/ClearImages/TestImages.
- Step 4:
- Copy the model from (DOWNLOAD FILE)/Results/models/(outdoor or indoor) to (PROGRAM_ROOT_PATH)/DeHazeNetModel
- Step 5:
- If you want to compare the result with groundtruth, you just need to run the program by using
python3 gman_eval.py
. - If you don't have ground truth, you can can run the program by using
python3 gman_eval.py --eval_only_haze=True
.
- If you want to compare the result with groundtruth, you just need to run the program by using
- Step 6:
- You results are in (PROGRAM_ROOT_PATH)/ClearResultImages.
Demonstration
Only listed several examples, more results can be found in my github.
Outdoor
Hazy | Groundtruth | Our result |
---|---|---|
Indoor
Hazy | Groundtruth | Our result |
---|---|---|
Citation
Please cite the paper if you are using this project.
@article{liu2019single,
title={Single Image Dehazing with a Generic Model-Agnostic Convolutional Neural Network},
author={Liu, Zheng and Xiao, Botao and Alrabeiah, Muhammad and Wang, Keyan and Chen, Jun},
journal={IEEE Signal Processing Letters},
volume={26},
number={6},
pages={833--837},
year={2019},
publisher={IEEE}
}
More
More of my Deep learning projects, please have a look at my website.Deep Learning Projects