StawGAN: Structural-Aware Generative Adversarial Networks for Infrared Image Translation

Luigi Sigillo, Eleonora Grassucci, Danilo Comminiello

TL;DR

StawGAN is a novel generative adversarial network designed to translate night-time thermal infrared (TIR) images into high-definition daytime color (RGB) images. By employing a dual-flow architecture that simultaneously processes images and segmentation masks, along with a structural-aware loss function, it produces translated images with significantly better object shapes and sharper details than previous state-of-the-art methods.

What Problem Does This Paper Address?

Analyzing night-time scenes is a critical task for autonomous vehicles and surveillance, but standard RGB cameras struggle in low-light conditions. Thermal infrared (TIR) imaging is the standard solution, as it captures heat signatures regardless of lighting. However, TIR images are typically low-contrast, single-channel, and difficult for humans to interpret.

Translating these TIR images into realistic RGB images (a task known as NTIT2DC) would improve human perception and the performance of downstream computer vision tasks like object detection. The core challenge is that the model must "invent" chrominance (color) information without having clear luminance (brightness) data, often resulting in blurry objects, "ghosting" effects, or unrealistic colors in existing models.

Methods

The authors introduce StawGAN (Structural-Aware GAN), which moves beyond simple colorization to focus on structural integrity. Key components include:

  • Dual-Flow Generator: Unlike standard generators, StawGAN uses two parallel encoder-decoder flows—one for the entire image and one for the segmented targets (e.g., vehicles). These flows are interconnected by a Shared Network that allows the model to combine global context with fine-grained object details.
  • Structural Dissimilarity Index Measure (DSSIM) Loss: This is the "structural-aware" heart of the model. By optimizing for DSSIM, the network is encouraged to maintain spatial smoothness and edge consistency, leading to better-defined object contours.
  • Shape Controller ($S$): A sub-network that takes the generated target image and produces a binary mask. This is used in a shape consistency loss to ensure the translated objects don't deviate from their original forms.
  • Contrast Network ($C$): A novel addition that helps the generator choose optimal contrast, sharpness, and gamma factors, preventing the "washed-out" or overly gray appearance common in GAN outputs.

![Fig.

  1. Architecture of StawGAN showing the dual-flow generator and shared network.](/figures/art_f717fef4fbc44d8da18a8b825d0203e2)

Datasets

The model was evaluated using the DroneVehicle dataset, which contains 56,878 paired RGB and infrared aerial images. The images feature five categories of vehicles: car, truck, bus, van, and freight car. The authors specifically processed this data to create a custom set of segmentation masks derived from the original bounding box annotations to support their dual-flow training approach.

Key Insights and Ideas

  • Target-Awareness is Key: By forcing the network to care specifically about the segmented targets (vehicles) through a dedicated flow and "crossing loss," the model avoids the common pitfall of generating a realistic background while blurring the most important objects in the scene.
  • Moving Beyond L1/L2 Losses: Standard pixel-wise reconstruction losses often fail to capture the "feel" of an image's structure. Integrating DSSIM directly into the optimization process acts as a powerful prior for maintaining sharp edges.
  • Synergy of Flows: The shared layers between the image flow and the target flow allow the model to learn that the appearance of a car is intrinsically linked to its segmented shape, leading to more "well-shaped" results.

Key Results

StawGAN outperformed several state-of-the-art models, including pix2pixHD, StarGAN v2, PearlGAN, and its predecessor TarGAN.

  • Quantitative Performance: StawGAN achieved the highest scores in PSNR (11.8251) and SSIM (0.2453), indicating superior image quality and structural similarity to the ground truth. It also achieved a very low FID (0.0119), second only to pix2pixHD, but with much better performance across all other metrics.
  • Segmentation Accuracy: In terms of generating accurate object shapes, StawGAN reached a Dice Similarity Coefficient (DSC) of 84.27%, significantly higher than TarGAN's 79.34%.
  • Qualitative Improvements: Visual inspections (see Figure 2 below) show that StawGAN avoids the "black holes" and ghosting artifacts seen in other models, producing vehicles with clear boundaries and realistic daytime colorization.

![Fig.

  1. Visual comparison of StawGAN against other models. Note the sharper vehicle details in the StawGAN column.](/figures/art_349494169c6a428097b5e93351e79b6c)
Table I. Quantitative comparison showing StawGAN's lead in PSNR and SSIM.

Limitations and Future Work

The authors note that while their segmentation masks are currently binary (foreground vs. background), the dataset contains class-specific information. Future work could involve using multi-colored masks to help the model learn class-specific textures (e.g., the difference between a bus and a freight car). Additionally, while the model is generalizable to unpaired problems, this specific study focused on paired aerial data; testing its robustness on ground-level, unpaired datasets remains an open direction.

Summary updated

BibTeX
@inproceedings{sigillo2023stawgan,
  author = {Luigi Sigillo and Eleonora Grassucci and Danilo Comminiello},
  title = {{StawGAN: Structural-Aware Generative Adversarial Networks for Infrared Image Translation}},
  booktitle = {ISCAS},
  year = {2023},
  doi = {10.1109/iscas46773.2023.10181838},
}
Figure