GDAFusion is a deep learning framework for fusing infrared and visible images using a two-phase training strategy with Mamba-based disentanglement and Restormer-based fusion.

Stars

8

7-day growth

No data

Forks

0

Open issues

0

License

No data

Last updated

2026-07-29

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It introduces information disentanglement and global alignment via mutual information minimization, combining a Mamba encoder with a Restormer decoder for state-of-the-art fusion quality.

Who it is for

  • Researchers in multi-modal image fusion
  • Computer vision engineers working on surveillance and night vision
  • Deep learning practitioners exploring transformer-based fusion architectures

Use cases

  • Enhancing low-light visible images with infrared information
  • Improving object detection in autonomous driving under adverse conditions
  • Creating high-quality fused images for security and surveillance systems

Strengths

  • Clear two-phase training pipeline with separate disentanglement and fusion objectives
  • Uses modern architectures (Mamba and Restormer) that are well-documented in the literature
  • Provides standard evaluation metrics (EN, MI, SF, SSIM, etc.) for reproducible benchmarking
  • Open-source code with detailed training arguments and dataset preparation instructions

Considerations

  • Only demonstrated on MSRS and LLVIP datasets; generalization to other modalities is untested
  • Requires a compatible GPU and PyTorch 2.x, which may limit deployment on older hardware
  • No pre-trained weights are provided, so users must train from scratch with the specified datasets

README quick start

Generative Representation Learning with Information Disentanglement and Global Alignment for Infrared and Visible Image Fusion

Paper

Pattern Recognition

GDAFusion is a deep learning framework for fusing infrared and visible images. It uses a two-phase training strategy:

  • Phase I — Disentanglement Pre-training: The Mamba-based encoder learns to disentangle shared and modality-specific features via mutual information minimization (CLUB) and MMD loss.
  • Phase II — Fusion Fine-tuning: The Restormer-based decoder is fine-tuned with a fusion-specific intensity + gradient loss.

Architecture Overview

                    ┌─────────────────┐
  VIS ──► Mamba ──►│  Base Feature   │──┬──► Decoder ──► Fused Image
  IR  ──► Mamba ──►│  Detail Feature │──┘
                    └────────┬────────┘
                             │
                    ┌────────▼────────┐
                    │  Mutual CLUB    │  (shared vs. specific disentanglement)
                    └─────────────────┘

Repository Structure

GDAFusion/
├── train.py              # Training entry point with argparse support
├── model/
│   ├── net.py            # Network: Mamba_Encoder, Restormer_Decoder, MMFusion, etc.
│   └── SS2D.py           # SS2D (Selective Scan 2D) core module
├── utils/
│   ├── loss.py           # Loss functions: Fusionloss, LMMD, KL divergence
│   └── metrics.py        # Evaluation metrics: EN, MI, SF, SSIM, VIFF, Qabf, etc.
├── requirements.txt
└── README.md

Requirements

  • Python 3.8+
  • PyTorch 2.x
  • CUDA-compatible GPU (recommended)

Install dependencies:

pip install -r requirements.txt

Dataset Preparation

The code expects the MSRS and LLVIP datasets under a common data directory:

./data/
├── MSRS/
│   ├── visible/
│   │   ├── train/
│   │   └── val/
│   └── infrared/
│       ├── train/
│       └── val/
└── LLVIP/
    ├── visible/
    │   ├── train/
    │   └── val/
    └── infrared/
        ├── train/
        └── val/

Training

# Default settings
python train.py

# Custom paths and hyperparameters
python train.py \
    --data_dir ./data \
    --ckpt_dir ./checkpoints \
    --num_epochs 120 \
    --batch_size 3 \
    --lr 1e-4

Arguments

ArgumentDefaultDescription
--data_dir./dataRoot directory containing MSRS/ and L

Description

[Pattern Recognition 2026] Generative Representation Learning with Information Disentanglement and Global Alignment for Infrared and Visible Image Fusion

Related repositories

Similar projects matched by category, topics, and programming language.

slvDev
Featured
slvDev GitHub avatar

esp32-ai

A 28.9 million parameter language model runs on an $8 ESP32-S3 microcontroller entirely on-device, generating simple stories at about 9.5 tokens per second.

AI & Machine LearningLarge Language Models
1,960
gavamedia
Featured
gavamedia GitHub avatar

deltafin

Deltafin is a research project that runs the 2.8-trillion-parameter Mixture-of-Experts model Kimi K3 on a single Apple Silicon Mac (e.g., M1 Max with 64 GB) at about 16 seconds per token, using exact, reproducible inference with local or streaming expert loading.

AI & Machine LearningLarge Language Models
304
jamesob
Featured
jamesob GitHub avatar

local-llm

A comprehensive guide for building and configuring a high-end local machine to run state-of-the-art LLMs, with detailed hardware choices, BIOS tuning, and Docker-based model serving.

AI & Machine LearningLarge Language Models
1,660