-
This repository contains the official implementation of the following paper:《Isomorphic Dual-Branch Network for Non-homogeneous Image Dehazing and Super-Resolution》Paper Link: https://doi.org/10.1007/978-981-99-8073-4_3
-
Authors: Wenqing Kuang, Zhan Li, Ruijin Guan, Weijun Yuan, Ruting Deng, and Yanquan Chen
-
Affiliation: Department of Computer Science, Jinan University, Guangzhou 510632, China
✅ Kuang, W., Li, Z., Guan, R., Yuan, W., Deng, R., Chen, Y. (2024). Isomorphic Dual-Branch Network for Non-homogeneous Image Dehazing and Super-Resolution. In: Luo, B., Cheng, L., Wu, ZG., Li, H., Li, C. (eds) Neural Information Processing. ICONIP 2023. Lecture Notes in Computer Science, vol 14451. Springer, Singapore. https://doi.org/10.1007/978-981-99-8073-4_3
Removing non-homogeneous haze from real-world images is a challenging task. Meanwhile, the popularity of high-definition imaging systems and compute-limited smart mobile devices has resulted in new problems, such as the high computational load caused by haze removal for large-size images, or the severe information loss caused by the degradation of both the haze and image downsampling, when applying existing dehazing methods. To address these issues, we propose an isomorphic dual-branch dehazing and super-resolution network for non-homogeneous dehazing of a downsampled hazy image, which produces dehazed and enlarged images with sharp edges and high color fidelity. We quantitatively and qualitatively compare our network with several state-of-the-art dehazing methods under the condition of different downsampling scales. Extensive experimental results demonstrate that our method achieves superior performance in terms of both the quality of output images and the computational load.
The architecture of our proposed methods can be separated into 3 part:
- First the downsampled input feeds into two structure identically branch (called isomorphic dual-branch, IDB).
- Since IDB is entirely same weight at first, we proposed a loss attention module (LA), witch help IDB learn differently during training.
- When come to inference. We concatenate the feature out of IDB and feed them into a feature fusion SR module (FFSR) to directly produce HR dehazed result.
-
Clone Repo
git clone <code_link> cd IDBDehaze-main/
-
Create Conda Environment and Install Dependencies
pytorch CUDA tqdm piqa ...
-
Prepare your directory structure
IDBDehaze-main |- dataset |- NH-HAZE2 |- test |- haze |- clean .... |- model |- NH-HAZE-nodownsampling.pth |- NH-HAZE-2xdownsampling.pth |- NH-HAZE-4xdownsampling.pth .... |- result |- weights |- res2net101_v1b_26w_4s-0812c246.pth
-
Download Test Set and Models
- Test Set:click here to download
- Models:click here to download
- Res2Net weight:click here to download
-
Run eval
python3 test.py --dataset_hazy dataset/NH-HAZE2/test/haze --dataset_clean dataset/NH-HAZE2/test/gt --model_name NH-HAZE2-nodownsampling --downsample_factor 1
There are four parameters that must be provided:
'--dataset_hazy', help='Set the path to hazy input’
'--dataset_clean', help='Set the path to clean images’
'--model_name', help="Set the name to model file, model files shoud be placed in 'model' floder”
'--downsample_factor', help="Set upsacle factor form ['1','0.5','0.25'],'1' means no any downsampling to input and diractly output orianl size of the input image”
-
The results are saved in the "result" folder.
result on HD-NH-HAZE:Download
- with 2x downsampling
- with 4x downsampling
result on NH-HAZE2:Download
- with 2x downsampling
- with 4x downsampling
- without downsampling
result on NH-HAZE:Download
- with 2x downsampling
- with 4x downsampling
- without downsampling