This project is part of the IE643 course and focuses on the unsupervised enhancement of low-light images. The objective is to transform low-light, low-resolution images into high-light, high-resolution images, addressing challenges like poor visibility and limited details.
Note: The code for experiments is not included here. You can clone the original repositories for the respective experiments:
For implementation details, refer to the complete code in the notebook: LowLightEnhancement.ipynb and for further details, consult the report: Report.pdf.
The proposed approach follows a two-stage unsupervised pipeline:
- Zero-DCE enhances illumination in low-light images without paired supervision.
- ESRGAN performs super-resolution to recover high-frequency details and improve perceptual quality.
Figure: Overall pipeline combining Zero-DCE for illumination enhancement and ESRGAN for super-resolution.
To implement this solution, create an account on Weights & Biases (WANDB). Once registered, retrieve your API key from the profile settings. This key is required for training the model and logging results.
If you prefer not to train the model:
- Download the pre-trained
model.h5file. - Place it in the Colab working directory for direct inference.
The code for the Streamlit UI is included under the Streamlit UI section at the end of the project.
-
Place the pre-trained model (
model.h5) in the Colab working directory. -
Run the commands provided under the Streamlit UI section to test the interface:
!wget -q -O - ipv4.icanhazip.comThis generates a tunnel password. Enter this password after clicking the generated link in the terminal.
-
While using Streamlit, permissions may be required for installations. Enter
ywhen prompted. -
Upload the images as directed on the UI screen to observe results.
-
For calculating quantitative metrics, upload the ground truth of the image along with the low-light image, and click on Calculate Metrics.
Below is an example of the project's output:
To quantitatively evaluate the performance of the proposed approach, we use the following metrics:
- PSNR (Peak Signal-to-Noise Ratio): Measures reconstruction fidelity.
- SSIM (Structural Similarity Index): Measures perceptual and structural similarity.
| Method | PSNR (dB) | SSIM |
|---|---|---|
| EnlightenGAN + ESRGAN | 19.08 | 0.5056 |
| SCI + ESRGAN | 15.64 | 0.2768 |
| Proposed (Zero-DCE + ESRGAN) | 19.75 | 0.5223 |

