Abstract
Recently, deep learning-based image enhancement algorithms achieved state-of-the-art (SOTA) performance on several publicly available datasets. However, most existing methods fail to meet practical requirements either for visual perception or for computation efficiency, especially for high-resolution images. In this paper, we propose a novel real-time image enhancer via learnable spatial-aware 3-dimentional lookup tables(3D LUTs), which well considers global scenario and local spatial information. Specifically, we introduce a light weight two-head weight predictor that has two outputs. One is a 1D weight vector used for image-level scenario adaptation, the other is a 3D weight map aimed for pixel-wise category fusion. We learn the spatial-aware 3D LUTs and fuse them according to the aforementioned weights in an end-to-end manner. The fused LUT is then used to transform the source image into the target tone in an efficient way. Extensive results show that our model outperforms SOTA image enhancement methods on public datasets both subjectively and objectively, and that our model only takes about 4ms to process a 4K resolution image on one NVIDIA V100 GPU.
Introduction
Image enhancement—adjusting color, contrast, and tone—is a staple of modern photography. While deep learning models (CNNs) produce stunning results, they are notoriously computationally expensive. Processing a high-resolution 4K image using standard pixel-level CNNs is often too slow for real-time applications on mobile devices or cameras.
To solve this, researchers have previously turned to 3D Lookup Tables (3D LUTs). A 3D LUT maps an input color to an output color efficiently. However, traditional 3D LUTs are "spatially blind," treating pixels with the same color identically regardless of their location (e.g., a dark pixel in a sunset vs. a shadow). This lack of local context leads to poor local contrast and artifacts in complex scenes.
Proposed Method
The proposed framework introduces Spatial-aware 3D LUTs. Instead of a single global LUT, the model learns a set of basic LUTs and fuses them dynamically based on image content.
The architecture consists of three main components:
- Two-Head Weight Predictor: A lightweight CNN operating on a downsampled (256x256) image. It outputs a 1D weight vector for global scenario adaptation and a 3D weight map for pixel-wise category fusion.
- Learnable Spatial-aware LUTs: $T$ sets of $M$ basic LUTs are fused using the predicted weights. This creates a custom transformation for every pixel, making the color mapping sensitive to spatial location.
- Hybrid Loss Function: Training utilizes Mean Squared Error (MSE), smoothness/monotonicity regulators to prevent banding, and Perceptual Loss (LPIPS) for visual quality.
The "Aha!" moment is the spatial weight map, allowing the model to apply different filters to the sky and foreground simultaneously. The authors found that $M=10$ categories provide the optimal balance between complexity and performance.
Experimental Results
The model was evaluated on the MIT-Adobe FiveK and HDR+ Burst Photography datasets. To test real-world performance, the authors released full-resolution 4K versions of these benchmarks.
Key findings include:
- Efficiency: The model processes a 4K image in approximately 4ms on an NVIDIA V100 GPU. As shown in the performance comparison, it significantly outperforms competitors like DeepLPF and HDRNet in both speed and PSNR, especially at high resolutions where many CNN-based methods face memory constraints.
- Accuracy: On the HDR+ dataset, the model achieved a PSNR of 28.29 dB, a substantial improvement over previous 3D LUT methods (23.59 dB).
- Visual Quality: Qualitative results demonstrate superior local contrast and fewer halo artifacts compared to spatially-blind alternatives.
Conclusion
This work presents a significant step toward real-time, high-quality image enhancement. By making 3D LUTs spatial-aware, the model bridges the gap between the efficiency of traditional LUTs and the contextual power of CNNs. While performance on high-end GPUs is impressive, future work should focus on optimization for mobile edge devices and ensuring robustness across extremely diverse lighting scenarios.
Summary updated