ThermalGen: Style-Disentangled Flow-Based Generative Models for RGB-to-Thermal Image Translation

Jiuhong Xiao, Roshan Nayak, Ning Zhang, Daniel Toertei, Giuseppe Loianno

Abstract

ThermalGen is a novel flow-based generative framework designed to synthesize high-fidelity thermal images from standard RGB inputs. By leveraging a style-disentangled architecture and a massive multi-domain benchmark, the model addresses the chronic scarcity of paired RGB-Thermal (RGB-T) data. ThermalGen enables robust cross-modality perception across diverse sensors and viewpoints, outperforming existing GAN and diffusion-based methods in perceptual quality and domain adaptability.

Introduction

Visual-thermal sensor fusion provides a critical advantage for computer vision systems, enabling robots and autonomous vehicles to navigate environments obscured by fog, smoke, or total darkness. However, the development of these systems is hampered by the difficulty of acquiring perfectly aligned, synchronized, and calibrated RGB-Thermal (RGB-T) image pairs. Collecting such data is expensive and technically challenging, leading to a significant data bottleneck.

While generative models like GANs and Diffusion models have attempted to bridge this gap by "hallucinating" thermal data from RGB inputs, they face three primary challenges:

  1. Data Scarcity: Most existing datasets are small and restricted to specific environments.
  2. The Semantic Gap: RGB images do not inherently contain thermal information; models must infer heat signatures from visual context.
  3. Domain Inconsistency: Thermal signatures vary wildly depending on the sensor hardware, time of day, and viewpoint (e.g., satellite vs. handheld).

ThermalGen addresses these issues by introducing a single, adaptive model capable of handling diverse "styles" without requiring retraining for every new scenario.

Methodology

ThermalGen departs from traditional GANs and standard Diffusion models, utilizing a Flow-Based Generative Paradigm based on the Scalable Interpolate Transformer (SiT). This approach provides greater stability and spatial alignment compared to traditional diffusion methods.

Style-Disentangled Mechanism

The core innovation of ThermalGen is its treatment of dataset-specific characteristics—such as sensor type or environmental conditions—as a "style." These styles are captured via learnable embeddings and injected into the model using Adaptive Layer Normalization (adaLN-Zero). This disentanglement allows the model to learn the fundamental relationship between RGB and Thermal data while isolating the specific quirks of different datasets.

Latent Space and Conditioning

To ensure computational efficiency, ThermalGen operates within a compressed latent space using a pretrained KL-VAE. For RGB conditioning, the researchers found that concatenating RGB latents with noised thermal latents provided superior spatial alignment and fidelity compared to more complex cross-attention mechanisms. Additionally, the model employs Classifier-Free Guidance (CFG), allowing users to control the intensity and contrast of the generated thermal style.

Dataset Contributions

Beyond the architectural innovations, the authors curated a massive benchmark by aggregating eight public datasets and introducing three new large-scale satellite-aerial datasets:

  • DJI-day
  • Bosonplus-day
  • Bosonplus-night

These new datasets provide aligned satellite RGB and aerial thermal imagery across diverse geographic regions. The final training pipeline utilized over 200,000 samples spanning satellite, aerial, and ground-level perspectives, creating one of the most comprehensive RGB-T training sets to date.

Results and Discussion

ThermalGen demonstrated superior performance against established baselines, including pix2pixHD, VQGAN, and DiffV2IR.

Perceptual Quality and Robustness

The model achieved significantly lower Fréchet Inception Distance (FID) and LPIPS scores, indicating that the generated images are more realistic and perceptually accurate. Notably, ThermalGen maintained high fidelity across all three categories (Satellite, Aerial, and Ground), whereas previous models often failed when transitioning between viewpoints (e.g., moving from a drone view to a street view).

Scaling and Ablation

Ablation studies confirmed that moving from a base model (SiT-B) to a larger model (SiT-XL) and reducing patch size consistently improved image granularity. The flow-matching approach (SiT) proved more robust than traditional diffusion (like DDIM) for this translation task, as it effectively avoided the "randomness" that can cause diffusion models to ignore the input RGB structure.

Limitations and Future Work

While ThermalGen represents a significant step forward, several challenges remain:

  • Low-Contrast Night Scenes: In extremely dark satellite imagery, the model can produce blurred outputs due to the lack of semantic cues in the RGB input.
  • Distant Objects: In ground-level driving scenarios, small or distant objects may lose detail during the translation process.
  • Distribution Gaps: Datasets with static backgrounds can create distribution shifts that hinder generalization to more dynamic environments.

Future research will focus on incorporating more diverse data sources and refining the model’s performance in extreme low-light conditions where RGB information is minimal.

Summary updated

BibTeX
@inproceedings{xiao2025thermalgen,
  author = {Jiuhong Xiao and Roshan Nayak and Ning Zhang and Daniel Toertei and Giuseppe Loianno},
  title = {{ThermalGen: Style-Disentangled Flow-Based Generative Models for RGB-to-Thermal Image Translation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=o0JSYq1TQ4},
}
Figure