TL;DR
This paper introduces HAQAGen, a novel generative model for converting Near-Infrared (NIR) images to visible RGB images. It tackles the challenge of producing high-quality, realistic colorizations that preserve fine details and adapt to varying image resolutions, outperforming existing methods in both quantitative metrics and visual quality.
What Problem Does This Paper Address?
Near-Infrared (NIR) imaging captures information invisible to the human eye, making it invaluable for applications like surveillance, autonomous driving, and remote sensing. However, raw NIR images lack the color information humans are accustomed to, limiting their direct interpretability. Converting NIR to RGB (colorization) aims to bridge this gap, but existing methods struggle with several key issues:
- Texture Loss: Generated RGB images often appear blurred or oversmoothed, losing the fine details present in the original NIR input.
- Color Distortions: The colorization process can introduce unnatural hues or inconsistent color mappings, reducing the realism of the output.
- Resolution Inflexibility: Many models are trained and tested on fixed image sizes, making them impractical for real-world scenarios where image resolutions vary widely.
- Generalization Issues: Models often perform well on the dataset they were trained on but struggle to generalize to unseen data from different sources.
- Computational Inefficiency: Some methods are too slow for real-time applications.
This paper aims to address these limitations by developing a unified, robust, and scalable NIR-to-RGB colorization model.
Methods
HAQAGen employs a multi-faceted approach to achieve high-quality NIR-to-RGB translation:
- Mamba Backbone: The model utilizes a ColorMamba backbone, known for its ability to capture long-range dependencies, which is crucial for understanding global image context.
- Dual-Branch Generation with SPADE: A novel dual-branch generator is introduced. One branch predicts the RGB image directly, while the other predicts an HSV (Hue, Saturation, Value) representation. The HSV predictions are then used to modulate the RGB decoder via Spatially Adaptive Denormalization (SPADE). This injects local chromatic priors, guiding the colorization process and improving consistency.
- Histogram-Assisted Loss: A key innovation is the use of a differentiable histogram loss. This loss term aligns the global color statistics between the generated and ground-truth images, helping to prevent color drift and ensure natural color distributions.
- Texture-Aware Feature Enhancement: The model incorporates a frozen autoencoder to capture task-specific textural features and uses VGG-19 features to anchor semantic structure. This combined approach helps preserve fine details and prevent oversmoothing.
- Adaptive-Resolution Inference: To handle varying input sizes without sacrificing quality, HAQAGen uses a sliding-window inference strategy. The image is processed in overlapping patches, and these patches are then seamlessly stitched together using feather blending. This avoids the blurriness often introduced by simple resizing.
Datasets
The paper evaluates HAQAGen on four public benchmarks:
- FANVID: Focuses on facial imagery and dynamic scenes.
- OMSIV: Contains varied outdoor scenes.
- VCIP2020: Covers indoor and outdoor scenes.
- RGB2NIR: Includes diverse scenes with variable resolutions.
The authors also mention using a consistent preprocessing pipeline and training schedule across all datasets to ensure fair comparisons.
Key Insights and Ideas
- HSV Priors for Chromatic Realism: Injecting local HSV information via SPADE is crucial for achieving natural and consistent colors, especially in regions with similar NIR intensities but different visual appearances.
- Global Statistics Matter: Relying solely on pixel-wise losses or local features is insufficient. The differentiable histogram loss is vital for aligning global color distributions and preventing color drift.
- Texture and Color are Intertwined: Preserving fine texture details is not just about sharpness; it's also about how those details contribute to the overall perceptual realism of the colorized image.
- Adaptive Resolution is Essential: For high-resolution NIR images, simple resizing is detrimental. A patch-based approach with seamless stitching is necessary to maintain detail and avoid artifacts.
Key Results
HAQAGen demonstrates significant improvements over state-of-the-art baselines across multiple metrics:
- Quantitative: It achieves the best PSNR (Peak Signal-to-Noise Ratio) and LPIPS (Learned Perceptual Image Patch Similarity) on VCIP2020, indicating better pixel fidelity and perceptual quality. It also shows consistent gains in LPIPS and AE (Angular Error) on high-resolution datasets when using adaptive inference.
- Qualitative: Visual comparisons (Figures 4 and 5) show that HAQAGen produces images with sharper textures, more natural color distributions, and better structural fidelity compared to methods like ColorMamba. It effectively preserves fine details like foliage and contours, avoiding the oversmoothing common in other approaches.
Limitations and Future Work
- Limitations: The paper acknowledges that while HAQAGen achieves strong results, there's still room for improvement. The trade-off between PSNR and AE on VCIP2020 suggests that further refinement in balancing these metrics might be beneficial.
- Future Work: The authors suggest several promising directions:
- Exploring self-supervised methods to reduce reliance on paired RGB supervision.
- Distilling the dual-branch architecture into lightweight variants for edge devices.
- Jointly optimizing colorization with downstream tasks like segmentation, tracking, and low-light enhancement for end-to-end vision systems.
Summary updated