Unified Image Enhancement for Autonomous Driving under Adverse Weather and Lowlight Conditions
AllWeatherNet is an advanced image enhancement framework designed to improve the visibility of images captured in challenging weather conditions, such as snow, rain, fog, and low-light environments. This solution is particularly tailored for autonomous driving applications, ensuring safety and performance in diverse environments.
- Unified Enhancement: Enhances images captured under various adverse weather conditions, including snowy, rainy, foggy, and nighttime scenarios.
- Scaled-Illumination Attention: Employs a robust scaled-illumination attention mechanism to maintain focus on the road across different conditions.
- Hierarchical Discrimination: Utilizes hierarchical patch-level discrimination at scene, object, and texture levels for more effective enhancement.
To set up the required environment, run:
pip install -r requirements.txt
- Download the dataset from the ACDC official website.
- Organize the dataset in the following structure:
├── ACDC │ ├── trainA # Contains adverse weather images │ └── trainB # Contains normal weather images
-
Download the Pretrained Model:
Download the pretrained model from this link and place it in thecheckpoints
folder within the repository. -
Set the Demo Image Path:
Specify the path to your demo image by setting thedataroot
variable inscript.py
. The image can either be the original or a downsampled version from the original dataset. -
Run the Script:
Execute the script using the following command:python scripts/script.py --predict
This project is inspired by EnlightenGAN. We greatly appreciate the authors for their outstanding contributions.
If you find this work useful, please cite:
@inbook{Qian_2024,
title={AllWeather-Net: Unified Image Enhancement for Autonomous Driving Under Adverse Weather and Low-Light Conditions},
ISBN={9783031781131},
ISSN={1611-3349},
url={http://dx.doi.org/10.1007/978-3-031-78113-1_11},
DOI={10.1007/978-3-031-78113-1_11},
booktitle={Pattern Recognition},
publisher={Springer Nature Switzerland},
author={Qian, Chenghao and Rezaei, Mahdi and Anwar, Saeed and Li, Wenjing and Hussain, Tanveer and Azarmi, Mohsen and Wang, Wei},
year={2024},
month=dec, pages={151–166} }
- Release test code
- Clean and refine training code
- Add more documentation and tutorials