Abstract
Visible-to-infrared (VIS-to-IR) image translation is a critical task for enhancing computer vision performance in challenging environments such as low-light or foggy conditions. Traditional approaches, largely dominated by Generative Adversarial Networks (GANs), often suffer from training instability, visual artifacts, and high computational costs. This paper introduces IRFormer, an ultra-lightweight Transformer-based model that achieves state-of-the-art translation quality with only 0.04M parameters. By utilizing a modular architecture including Color Perception Adapters and Enhanced Perception Attention, IRFormer provides a stable and efficient alternative for real-time applications such as autonomous driving and pedestrian detection.
1. Introduction
In the realm of computer vision, visible-light (VIS) cameras are the standard but face significant limitations in adverse conditions. Fog, smoke, and low-light environments often result in low-contrast images where critical objects are obscured. Infrared (IR) sensors mitigate these issues by detecting thermal radiation, yet their high cost and physical bulk limit widespread deployment.
Image-to-image translation offers a software-based solution by synthesizing IR images from standard VIS inputs. However, existing methods—primarily GAN-based—face three major challenges:
- Training Instability: The adversarial nature of GANs makes convergence difficult and unpredictable.
- Visual Artifacts: Models frequently produce "ghosting" effects (duplicated objects) or lose detail in dark regions ("blackouts").
- Computational Overhead: High-performing models are often too resource-intensive for edge devices like drones or automotive sensors.
IRFormer addresses these challenges by moving away from the GAN paradigm toward a stable, modular Transformer-based feature mapping approach.
2. Methodology
IRFormer is designed as an end-to-end Transformer architecture that prioritizes feature preservation and computational efficiency. The model consists of several specialized modules:
- Color Perception Adapter (CPA): This module bridges the gap between RGB channels and the infrared spectrum, ensuring that color attributes are accurately mapped to thermal representations.
- Enhanced Feature Mapping (EFM): By employing multi-scale downsampling, the EFM captures fine-grained textures that are typically lost in low-light VIS images.
- Dynamic Fusion Aggregation (DFA): This module projects features into a latent space using an attention mechanism based on maximum and average pooling, preserving the most salient features from the VIS domain.
- Enhanced Perception Attention (EPA): Inspired by NAFNet, this dual-attention system (channel and pixel attention) compensates for information loss caused by obstructions or extreme low light.
- Transformer Block: The final stage captures long-range dependencies and global context to refine the reconstructed IR image.
The model is optimized using a dual loss strategy: Smooth L1 loss for pixel-level accuracy and SSIM loss to maintain structural similarity.
3. Experimental Results
The IRFormer was evaluated against five diverse datasets to ensure generalizability: LLVIP, RoadScene, M3FD, FLIR, and MCubeS.
3.1 Quantitative Performance
On the LLVIP dataset, IRFormer demonstrated a significant leap in image quality. It achieved a PSNR of 12.66 and an SSIM of 0.44, nearly doubling the performance of the previous state-of-the-art model, BCI (which scored 6.84 PSNR).
3.2 Efficiency and Edge Readiness
The most notable achievement of IRFormer is its efficiency. While competing models like BCI require over 14 million parameters, IRFormer operates with just 0.04M parameters and 2.41G MACs (Multiply-Accumulate operations). This reduction in size makes it uniquely suited for deployment on low-power edge devices.
3.3 Downstream Task Utility
To test practical utility, the generated IR images were used as input for a YOLOv5 pedestrian detector. IRFormer achieved a mAP@50 of 0.146, outperforming all other translation methods and confirming that the synthesized images retain critical semantic information for safety-critical systems in dark environments.
4. Conclusion
IRFormer represents a significant shift in VIS-to-IR translation, proving that lightweight Transformer architectures can outperform heavy GAN-based models. By focusing on stable feature mapping and dual-attention mechanisms, the model eliminates common artifacts while remaining computationally efficient. Future work will focus on further refining contrast enhancement and exploring unsupervised training methods to reduce the reliance on paired datasets.
Summary updated