TL;DR
This paper introduces TGFuse, a novel end-to-end image fusion framework that combines a lightweight transformer module with generative adversarial networks (GANs) to effectively fuse infrared and visible images. By leveraging transformers for global dependency learning and GANs for enhanced realism, TGFuse achieves superior performance compared to state-of-the-art methods, particularly in complex scenarios.
What Problem Does This Paper Address?
Traditional image fusion methods, especially those relying on Convolutional Neural Networks (CNNs), often struggle to capture long-range dependencies within images. This limitation hinders their ability to achieve a balanced perception of the entire scene, which is crucial for complex fusion tasks like combining infrared and visible imagery. Existing CNN-based approaches tend to focus on local features, neglecting the global context that can be vital for accurately representing details from both modalities. This paper aims to bridge this gap by incorporating transformer architectures, known for their global interaction capabilities, into the fusion process.
Methods
The proposed TGFuse framework comprises two main components: a generator and two discriminators, trained adversarially.
- Generator: This component is responsible for producing the fused image. It begins by extracting initial features using a CNN. These features are then fed into a novel "transformer fusion module." This module is composed of two sub-modules:
- Spatial Transformer: This module adapts the standard transformer architecture to learn global spatial relationships between image patches. It processes image patches as vectors to capture long-range dependencies across the image.
-
Channel Transformer: This module is specifically designed to learn cross-channel relationships, which are also deemed important for effective fusion. It treats image channels as tokens to capture inter-channel correlations. The spatial and channel transformers are combined, with experiments suggesting that processing channel relationships first followed by spatial relationships yields better results.
-
Discriminators: Two discriminators are employed to refine the fused image's perceptual quality. They are trained to distinguish between real infrared/visible images and the generated fused image. Specifically, "Dis-IR" compares the fused image with the infrared input, and "Dis-VIS" compares it with the visible input. A pre-trained VGG-16 network is used as the backbone for these discriminators, allowing for feature-level comparison and encouraging the fused image to retain characteristics from both modalities.
Datasets
- Training: The authors utilized 40,000 pairs of corresponding infrared and visible images from the KAIST dataset, which is a pedestrian dataset containing diverse scenes.
- Testing: For evaluation, they used 10 pairs of images from the test set of reference [18], with image sizes up to 2048x2048 pixels.
Key Insights and Ideas
- Transformers for Global Context: The paper highlights that transformers, with their inherent ability to model long-range dependencies, are a powerful tool for image fusion, overcoming a key limitation of CNNs.
- Dual Transformer Approach: The introduction of both spatial and channel transformers within a single fusion module allows for a more comprehensive understanding of image relationships, leading to richer fused outputs.
- Channel-First Fusion: The finding that processing channel relationships before spatial relationships in the transformer module yields better results suggests a specific order of feature interaction that is beneficial for infrared-visible fusion.
- Adversarial Learning for Realism: The use of GANs, specifically with feature-level discriminators, effectively guides the generator to produce fused images that are more realistic and retain salient characteristics from both input modalities.
- Position Embedding Removal: Removing position embedding from the spatial transformer proved beneficial, indicating that explicit positional information is not critical for this fusion task and allows for more flexible input image sizes.
Key Results
The proposed TGFuse method demonstrated superior performance across multiple objective evaluation metrics compared to 15 other state-of-the-art fusion methods.
- Quantitative: TGFuse achieved the best results on 7 out of 9 common evaluation indicators, including SF, EN, Qabf, FMIw, MS-SSIM, FMIpixel, MI, SD, and VIF. It also secured third place on the remaining two indicators.
- Qualitative: Subjective evaluations showed that TGFuse produces fused images that are more in line with human visual perception, maintaining environmental information from the visible image and salient details from the infrared image without introducing significant artificial noise.
Limitations and Future Work
- Limitations:
- The paper notes that when the number of layers in the transformer fusion module is too few (e.g., three), the model may fail to learn effective fusion relationships, resulting in a "meaningless black image." Conversely, too many layers (e.g., five) can lead to redundant fusion relationships.
- Similarly, for the CNN feature extraction layers, if the feature blocks become too small (due to too many layers), the model may struggle to learn effective fusion relationships.
- Future Work: The paper suggests that the proposed transformer-based fusion module and adversarial learning framework offer a novel paradigm for image fusion tasks, opening avenues for further exploration and improvement in this domain. The ablation studies on transformer layers and CNN layers indicate that careful tuning of these parameters is crucial for optimal performance.
Summary updated