Abstract
Translating night-time thermal infrared (TIR) images into daytime color (RGB) images is a critical task for enhancing the interpretability of autonomous driving and surveillance systems. However, this "one-to-many" mapping problem often results in blurry outputs and structural distortions. This paper presents StawGAN (Structural-Aware Generative Adversarial Network), a novel framework designed to preserve structural integrity and sharp object contours during translation. By utilizing a dual-flow generator, a structural dissimilarity loss (DSSIM), and a dedicated shape controller, StawGAN achieves state-of-the-art performance in producing high-definition, realistic RGB translations from infrared sources.
Introduction
Operating autonomous systems at night requires robust perception capabilities. While thermal infrared (TIR) sensors are effective in low-light environments, their outputs lack the rich feature sets and intuitive visual information found in RGB images. Translating TIR to RGB—a process often called colorization—is inherently difficult because a single grayscale intensity in an infrared image can correspond to multiple possible colors in the visible spectrum.
Existing image-to-image translation models frequently suffer from "ghosting" artifacts, loss of fine details, and structural deformation of key objects like vehicles. StawGAN addresses these challenges by shifting the focus from simple pixel-level color mapping to a more holistic approach that prioritizes structural consistency and edge preservation.
Methodology
StawGAN introduces a multi-faceted architecture designed to maintain the geometric properties of the scene while generating realistic textures.
Dual-Flow Generator
At the core of StawGAN is a dual-flow generator inspired by the TarGAN architecture. It consists of two interconnected encoder-decoder paths: one dedicated to the global image and another specifically for segmented targets (e.g., vehicles). These flows share layers, allowing the network to synchronize the generation of the background with the specific structural requirements of foreground objects. This dual-pathway ensures that the model "pays attention" to the boundaries of vehicles, preventing them from blending into the background.
Structural Dissimilarity Index Measure (DSSIM) Loss
Standard GANs often rely on L1 or L2 pixel-wise losses, which can lead to blurry results. StawGAN incorporates the Structural Dissimilarity Index Measure (DSSIM) loss. Unlike pixel-level metrics, DSSIM encourages spatial smoothness and ensures that the edges and textures in the generated RGB image align precisely with the source TIR image. This loss function is pivotal in maintaining the sharp contours necessary for downstream computer vision tasks.
Contrast Network ($C$) and Shape Controller ($S$)
To further refine the output, StawGAN utilizes two auxiliary sub-networks:
- Contrast Network ($C$): This network predicts optimal contrast, sharpness, and gamma factors for the generated image, ensuring the output has realistic lighting rather than a flat, synthetic appearance.
- Shape Controller ($S$): This component generates a binary mask from the translated target. By comparing this mask against the ground truth, the model enforces "shape consistency," ensuring that a car in the infrared domain remains a car in the RGB domain without losing its characteristic silhouette.
Experimental Setup
The model was evaluated using the DroneVehicle dataset, a comprehensive collection of 56,878 paired RGB and TIR images captured by drones. The dataset includes oriented bounding boxes for five vehicle categories: car, truck, bus, van, and freight car. For training, the authors generated custom segmentation masks from these bounding boxes to guide the dual-flow generator. The focus was placed on the thermal infrared subset, which presents significant challenges due to low contrast and high noise.
Results and Discussion
StawGAN was compared against several state-of-the-art models, including pix2pixHD, StarGAN v2, and PearlGAN. The quantitative results demonstrate StawGAN's superiority across multiple dimensions:
- Image Fidelity: StawGAN achieved a Fréchet Inception Distance (FID) of 0.0119 and a Structural Similarity Index (SSIM) of 0.2453. These metrics indicate that the generated images are statistically closer to real daytime images and preserve structural details better than competing models.
- Segmentation Accuracy: To test structural preservation, the authors measured the Dice Similarity Coefficient (DSC). StawGAN achieved a DSC of 84.27%, significantly outperforming TarGAN (79.34%). This confirms that the model is exceptionally effective at maintaining the precise boundaries of vehicles.
- Qualitative Improvements: Visually, StawGAN avoids the common pitfalls of infrared translation, such as "black holes" (areas of zero intensity) and blurred targets. The resulting images feature sharp edges and realistic color distributions that align with the underlying geometry of the scene.
Conclusion
The primary insight of StawGAN is that for effective infrared-to-RGB translation, the underlying geometry and shape of objects are more critical than the exact color shade. By integrating structural awareness into the generative process, StawGAN bridges the gap between paired and unpaired image translation, offering a robust solution for real-world drone and surveillance applications.
Future work may involve leveraging class-specific information (e.g., distinguishing between a bus and a van) to further refine colorization and reducing the computational overhead associated with high-resolution GAN training.
Summary updated