Enlighten Anything: When Segment Anything Model Meets Low-Light Image Enhancement

Qihan Zhao, Xiaofeng Zhang, Hao Tang, Chaochen Gu, Shanying Zhu · DOI

TL;DR

This paper introduces "Enlighten Anything," a novel unsupervised low-light image enhancement method that leverages the semantic understanding capabilities of the Segment Anything Model (SAM). By fusing semantic information with low-light image enhancement, the method achieves state-of-the-art results on the LOL dataset, significantly improving visual perception and recognition accuracy in challenging lighting conditions.

What Problem Does This Paper Address?

Low-light conditions pose a significant challenge for computer vision tasks, leading to underexposure, noise, and loss of critical details. Traditional image enhancement methods often struggle with these issues, particularly in unsupervised settings where they may fail to effectively aggregate complementary information. Supervised methods, while effective, require paired low-light and normal-light images for training, which can be difficult to obtain and limit generalization. Existing unsupervised methods often overlook the semantic content of images, hindering their ability to produce satisfactory results, especially in extreme low-light scenarios. This paper aims to bridge this gap by integrating semantic understanding into the unsupervised low-light enhancement process.

Methods

The proposed "Enlighten Anything" model is an end-to-end trainable system composed of three main parts:

  1. Correction Network: This component is inspired by the Retinex theory, which models an image as the product of illumination and reflectance. It employs a progressive illumination optimization process, iteratively refining the illumination estimation.
  2. Enhancement Network: This network takes the estimated illumination and the original low-light image to produce an enhanced output.
  3. Semantic Fusion (SF) Module: This is the core novelty. It leverages the Segment Anything Model (SAM) to extract semantic information from the low-light image. The SF module then fuses these semantic priors with the image features from the enhancement network. This fusion is achieved through a cross-modal similarity mechanism, where attention maps are generated to align semantic and image features, leading to a refined feature map. The authors use HRNet as a backbone for semantic segmentation and incorporate multiscale semantic priors.

The method is designed to be unsupervised, meaning it does not require paired training data. It also incorporates a "Self-calibration module" to ensure convergence of different phases of the training process.

Datasets

The primary dataset used for training and evaluation is the LOL dataset. This dataset consists of 500 low-light/normal-light image pairs captured from real scenes. The authors used 485 pairs for training and the remaining 15 for evaluation.

Key Insights and Ideas

  • Semantic Priors for Low-Light Enhancement: The paper demonstrates that incorporating semantic information, particularly from powerful models like SAM, can significantly boost the performance of unsupervised low-light image enhancement. This moves beyond purely pixel-level adjustments to a more context-aware approach.
  • Unsupervised Learning with SAM: By integrating SAM's zero-shot segmentation capabilities, the method gains a powerful aid for unsupervised enhancement, improving generalization and robustness without the need for extensive labeled data.
  • Fusion of Semantic and Image Features: The Semantic Fusion module is crucial. It effectively bridges the gap between semantic segmentation and image enhancement by creating a pathway for information exchange, leading to more perceptually pleasing and semantically consistent results.
  • Improved Recognition Accuracy: The enhanced images not only look better but also enable better object recognition in low-light environments, as the improved detail and contrast make it easier for downstream tasks to identify objects.

Key Results

The "Enlighten Anything" method achieves state-of-the-art results on the LOL dataset. Specifically, the authors report improvements of 3 dB in PSNR and 8 in SSIM over baseline methods. The paper also includes visual comparisons (Figure 3 and Figure 4) showcasing the qualitative improvements in terms of detail recovery, noise reduction, and overall visual quality compared to various existing methods.

Limitations and Future Work

  • Limitations: The authors acknowledge that their results, in some cases, still produce underexposure, and the colors might be more prominent. They also note that while their method is unsupervised, supervised learning can achieve better performance but at a higher computational cost and with potential overfitting issues.
  • Future Work: The authors plan to increase the complexity of their model to adapt it to a wider variety of real-world images. They also suggest that zero-shot learning is a promising direction for future research in this area.

Summary updated

Abstract

Image restoration is a low-level visual task, and most CNN methods are designed as black boxes, lacking transparency and intrinsic aesthetics. Many unsupervised approaches ignore the degradation of visible information in low-light scenes, which will seriously affect the aggregation of complementary information and also make the fusion algorithm unable to produce satisfactory fusion results under extreme conditions. In this paper, we propose Enlighten-anything, which is able to enhance and fuse the semantic intent of SAM segmentation with low-light images to obtain fused images with good visual perception. The generalization ability of unsupervised learning is greatly improved, and experiments on LOL dataset are conducted to show that our method improves 3db in PSNR over baseline and 8 in SSIM. Zero-shot learning of SAM introduces a powerful aid for unsupervised low-light enhancement. The source code of Enlighten Anything can be obtained from https://github.com/zhangbaijin/enlighten-anything
BibTeX
@misc{zhao2023enlighten,
  author = {Qihan Zhao and Xiaofeng Zhang and Hao Tang and Chaochen Gu and Shanying Zhu},
  title = {{Enlighten Anything: When Segment Anything Model Meets Low-Light Image Enhancement}},
  year = {2023},
  eprint = {2306.10286},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.10286},
}
Figure