Skip to content

Linfeng-Tang/ControlFusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

✨ News:

🔎 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

📂 Dataset Download

Google Drive

📥 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{Tang2025ControlFusion,
  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: linfeng0419@gmail.com, wangyeda@whu.edu.cn. 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

 
 
 

Contributors

Languages