Skip to content

Code for the paper: "FusionMamba: Efficient Image Fusion with State Space Model", 2024.

Notifications You must be signed in to change notification settings

PSRben/FusionMamba

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FusionMamba

  • Code for the paper: "FusionMamba: Efficient Image Fusion with State Space Model", 2024.

  • First application of the state space model (SSM) in the hyper-spectral pansharpening and hyper-spectral image super-resolution (HISR) tasks.

  • State-of-the-art (SOTA) performance in pansharpening, hyper-spectral pansharpening, and HISR tasks.

Paper

For a detailed understanding of our method, please refer to the paper: FusionMamba: Efficient Image Fusion with State Space Model.

Get Started

Dataset

  • Datasets for pansharpening: PanCollection. We recommend downloading datasets in the h5py format.

  • Datasets for hyper-spectral pansharpening: HyperPanCollection. We recommend downloading datasets in the h5py format.

  • Dataset for HISR: the CAVE dataset. You can find this dataset on the Internet.

Installation

  1. Clone the repository:
git clone https://github.com/PSRben/FusionMamba.git
  1. Install the Mamba implementation by following the instructions in the Mamba-block directory.

  2. Install other packages:

pip install einops h5py opencv-python torchinfo scipy numpy

Usage

  • This repository is only for the pansharpening task.

  • The model weights trained on the WV3 dataset for 400 epochs can be found in the weights directory.

# train
python train.py --train_data_path ./path_to_data/train_WV3.h5 --val_data_path ./path_to_data/valid_WV3.h5
# test
python test.py --file_path ./path_to_data/name.h5 --save_dir ./path_to_dir --weight ./weights/epochs.pth

Citation

@misc{peng2024fusionmamba,
      title={FusionMamba: Efficient Image Fusion with State Space Model}, 
      author={Siran Peng and Xiangyu Zhu and Haoyu Deng and Zhen Lei and Liang-Jian Deng},
      year={2024},
      eprint={2404.07932},
      archivePrefix={arXiv},
      primaryClass={cs.CV}
}

Contact

We are glad to hear from you. If you have any questions, please feel free to contact siran_peng@163.com.

About

Code for the paper: "FusionMamba: Efficient Image Fusion with State Space Model", 2024.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages