Skip to content

a practicable Pytorch framework used in Deep Learning.

License

Notifications You must be signed in to change notification settings

XiaoXiao-Woo/UDL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unified Deep Learning Framework for Vision Tasks (Release v1.0.0 PyPI 🎉)

[UDL] [PanCollection] [HyperSpectralCollection] [MSIF]

UDL is a unified Pytorch framework for vision research:

  • UDL has a faster library loading speed and a more convenient reflection mechanism to call different methods.
  • UDL is based on accelerate/transformers/lightning/MMCV1 which provides more functionalities.
  • UDL is based on NNI to perform automatic machine learning. We will release UDL-CIL to perform automatic experimental management.
  • UDL is based on Hydra to manage the configuration of the experiment.
  • UDL is based on Huggingface to download and upload datasets and models.

News🔥🔥🔥

  • 2025-?: We will Release UDL-CIL for experimental management. 🎉
  • 2025.1: Release UDL v1.0.0. 🎉
  • 2025.1: Release datasets_searchpath_plugins based on Hydra. 🎉
  • 🎨 The FC-Former convers multiple multi-source image fusion scenes:
    • Multispectral and hyperspectral image fusion;
    • Remote sensing pansharpening;
    • Visible and infrared image fusion (VIS-IR);
    • Digital photographic image fusion: Multi-focus image fusion (MFF) and multi-exposure image fusion (MEF).
  • 🎁 We will release a new version of UDL, PanCollection. Furthermore, we also release repositories of HyperSpectralCollection, comming soon and MSIF, comming soon.
  • 2025.1: Release PanCollection v1.0.0. 🎉
  • 2024.12: Fully-connected Transformer for Multi-source Image Fusion. IEEE T-PAMI 2025. ([Paper](coming soon), Code) 📖
  • 2024.12: Deep Learning in Remote Sensing Image Fusion: Methods, Protocols, Data, and Future Perspectives. IEEE GRSM 2024. (Paper) 📖
  • 2024.10: SSDiff: Spatial-spectral Integrated Diffusion Model for Remote Sensing Pansharpening. NeurIPS 2024. (Paper, Code) 🚀
  • 2024.5: Content-Adaptive Non-Local Convolution for Remote Sensing Pansharpening. CVPR 2024. (Paper, Code) 🚀
  • 2022.5: We released PanCollection. 🎉
  • 2022.5: We released UDL. 🎉

Features

Features Value
Automatic experimental configuration
Lightning, transformers, accelerate, mmcv, FSDP, DeepSpeed, etc.
Downstream tasks, including pansharpening, hyperspectral image fusion, etc.
Download and upload huggingface models

Recommendations

We recommend users utilize this code toolbox alongside our other open-source datasets for optimal results, such as PanCollection, HyperSpectralCollection, MSIF, etc.

Quick Start 🤗

  1. Install our basic training/inference repo with multiple Pytorch framework support. You can select one of backends: accelerate, lightning, transformers, and mmcv1.
pip install udl_vis --upgrade
  1. Install the [Task] repo by populating one of the following repos: pancollection, mhif msif.
pip install [Task] --upgrade
  1. Then in this repository:
pip install -e .

Train in PanCollection

Here, we take Huggingface accelerate as the backend, thus

sh  run_accelerate_ddp_pansharpening.sh

The script will call python_scripts/accelerate_pansharpening.py to run the FC-Former. More information you can see model.yaml

Inference

You only need to update the fusionnet.yaml as follows:

  eval : true # change false to true
  workflow:
    - ["test", 1]
    # - ["train", 10] # comment it

Test Your Metrics

Finally, we provide the correspoinding Matlab toolboxes to test the metrics on those tasks. Please check them in our repo.

Experiments

In this part, we conduct experiments in the following cases. All settings can be changed in dataset.yaml.

  • MHIF: CAVE and Harvard.
  • VIS-IR image fusion: TNO and RoadScene datasets.
  • Pansharpening: WorldView-3, GaoFen-2, QuickBird datasets.
  • Digital photographic image fusion: MFF-WHU, MEF-Lytro,MEF-SLICE, MEFB.

Citation

Please cite this project if you use datasets or the toolbox in your research.

@article{FCFormer,
  title={Fully-connected Transformer for Multi-source  Image Fusion},
  author={Xiao Wu, Zi-Han Cao, Ting-Zhu Huang, Liang-Jian Deng, Jocelyn Chanussot, and Gemine Vivone}
  journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year={2024},
  publisher={IEEE}
}
@inproceedings{Wu_2021_ICCV,
    author    = {Wu, Xiao and Huang, Ting-Zhu and Deng, Liang-Jian and Zhang, Tian-Jing},
    title     = {Dynamic Cross Feature Fusion for Remote Sensing Pansharpening},
    booktitle = {Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
    month     = {October},
    year      = {2021},
    pages     = {14687-14696}
}
@article{vivone2024deep,
  title={Deep Learning in Remote Sensing Image Fusion: Methods, protocols, data, and future perspectives},
  author={Vivone, Gemine and Deng, Liang-Jian and Deng, Shangqi and Hong, Danfeng and Jiang, Menghui and Li, Chenyu and Li, Wei and Shen, Huanfeng and Wu, Xiao and Xiao, Jin-Liang and others},
  journal={IEEE Geoscience and Remote Sensing Magazine},
  year={2024},
  publisher={IEEE}
}
@article{zhong2024ssdiff,
  title={SSDiff: Spatial-spectral Integrated Diffusion Model for Remote Sensing Pansharpening},
  author={Zhong, Yu and Wu, Xiao and Deng, Liang-Jian and Cao, Zihan},
  journal={arXiv preprint arXiv:2404.11537},
  year={2024}
}
@ARTICLE{duancvpr2024,
    title={Content-Adaptive Non-Local Convolution for Remote Sensing Pansharpening},
    author={Yule Duan, Xiao Wu, Haoyu Deng, Liang-Jian Deng*},
    journal={IEEE/CVF Computer Vision and Pattern Recognition Conference (CVPR)},
    year={2024}
}
@ARTICLE{dengijcai2023,
    title={Bidirectional Dilation Transformer for Multispectral and Hyperspectral Image Fusion},
    author={Shang-Qi Deng, Liang-Jian Deng*, Xiao Wu, Ran Ran, Rui Wen},
    journal={International Joint Conference on Artificial Intelligence (IJCAI)},
    year={2023}
}
@misc{PanCollection,
    author = {Xiao Wu, Liang-Jian Deng and Ran Ran},
    title = {"PanCollection" for Remote Sensing Pansharpening},
    url = {https://github.com/XiaoXiao-Woo/PanCollection/},
    year = {2022}
}

License

This project is open sourced under GNU General Public License v3.0.

Contact

If you have any questions, please contact us at:

About

a practicable Pytorch framework used in Deep Learning.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published