Skip to content

This is official Pytorch implementation of "[NeurIPS 2025] ControlFusion: A Controllable Image Fusion Framework with Language-Vision Degradation Prompts"

Notifications You must be signed in to change notification settings

Linfeng-Tang/ControlFusion

Repository files navigation

1Wuhan University   2Macau University of Science and Technology   3Harbin Institute of Technology
*Equal Contribution   Corresponding Author

🔎 Method Overview

Motivation

ControlFusion

Framework

ControlFusion

Frequency Domain Comparison

ControlFusion

🔧 Environment Setup

  1. Clone this repository:

    git clone https://github.com/Linfeng-Tang/ControlFusion.git
    cd ControlFusion
  2. Create a Conda environment (recommended):

    conda create -n controlfusion python=3.8 -y
    conda activate controlfusion
  3. Install dependency packages:

    pip install -r requirements.txt

📂 Dataset Construction

please refer to genDateset,To simulate light degradation, use Lightroom Classic
Our dataset will be open sourced soon.

📥 Pre-trained Weights

Download the pretrained model Mask-DiFuser from Baidu Drive, and put the weight into pretrained_weights/.

🧪 Inference

You can use the test.py script we provide to fuse pairs of images. Please make sure you have downloaded the pre-trained weights. You can modify ControlFusion.py to select text/auto control by:

text_features = self.get_text_feature(text.expand(b, -1)).to(inp_img_A.dtype)
text_features = imgfeature

🚂 Train

You can use the train.py script we provide to train. Make sure you have organized your train dataset correctly.

📷 Results

Visualization of fusion results in different degraded scenarios

ControlFusion

Generalization results in the real world

ControlFusion

🕵️‍♂️ Detection

ControlFusion

🎓 Citations

If our work is useful for your research, please consider citing and give us a star ⭐:

@inproceedings{Tang2024Mask-DiFuser,
  author={Linfeng Tang, Yeda Wang, Zhanchuan Cai, Junjun Jiang, and Jiayi Ma},
  title={ControlFusion: A Controllable Image Fusion Network with Language-Vision Degradation Prompts}, 
  booktitle={Advances in Neural Information Processing Systems},
  year={2025},
 }

🤝 Contact

Please feel free to contact: [email protected], [email protected]. We are very pleased to communicate with you and will maintain this repository during our free time.

About

This is official Pytorch implementation of "[NeurIPS 2025] ControlFusion: A Controllable Image Fusion Framework with Language-Vision Degradation Prompts"

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages