← 返回首页
GitHub - zhayanping/MagicFuse · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

zhayanping/MagicFuse

Go to file
Code

Repository files navigation

🔎 Method Overview

Motivation

Framework

🛠️ Create Environment

  1. Clone this repository:

    git clone https://github.com/zhayanping/MagicFuse.git cd MagicFuse
  2. Create a Conda environment (recommended):

    conda create -n MagicFuse python=3.12 conda activate MagicFuse
  3. Install dependency packages:

    pip install -r requirements.txt

📥 Pre-trained Weights

Download the pretrained weights for the CKG and IKR diffusion branches from Baidu Drive, and place them in the following directories: pretrained/CKG and pretrained/IKR.

🏋️ Training

Our project adopts a distributed training mode, you can modify the relevant settings in the train.py file to specify the appropriate CUDA device identifier for training. Please store the training data in the following format:

Fusion ├──train ├── vis ├── label

🧪 Testing

⚡ quicktest.ipynb Used for quick testing on single images. You can modify the input/output paths directly in the Jupyter Notebook to easily check the inference results of a single image.

⚡ test.py Designed for large-scale image testing tasks. This script supports multi-GPU parallel testing to efficiently process large batches of images. If you need to adjust the image size for testing, you can configure it in the dataset.py file.

⚡ test4largeImg.ipynb Specifically developed for testing large-size images. It adopts a dynamic model loading strategy to effectively save GPU memory usage.

If this work is helpful to you, please cite it as:

@inproceedings{zhang2026magic, title={MagicFuse: Single image fusion for visual and semantic reinforcement}, author={Zhang, Hao and Zha, Yanping and Li, Zizhuo and Gong, Meiqi and Ma, Jiayi}, booktitle={Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition}, year={2026} }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Footer

© 2026 GitHub, Inc.