Skip to content
forked from BiQiWHU/Samba

[NeurIPS2024] Samba: Severity-aware Recurrent Modeling for Cross-domain Medical Image Grading

Notifications You must be signed in to change notification settings

JingjunYi/Samba

 
 

Repository files navigation

[NeurIPS 2024] Samba: Severity-aware Recurrent Modeling for Cross-domain Medical Image Grading

This is the official implementation of our work entitled as Samba: Severity-aware Recurrent Modeling for Cross-domain Medical Image Grading, which has been accepted by NeurIPS 2024.

Environment Configuration

Please refer to the requirements.txt file in this project.

Training

An command example to train the model when using APTOS as the source domain is:

python main_fundus.py --cfg configs/vssm1/vssm_base_224.yaml --resume pretrain/vssm_base_0229_ckpt_epoch_237.pth --batch-size 16 --data-path G:/NeruIPS2024/datasets/DGDR/reimages/APTOS --output outputs/vssm_base_APTOS_em --dataset fundus

Please remember to change the file folder to your own.

Inference

An command example to infer the model when using DEEPDR as the unseen target domain is:

python main_fundus.py --cfg configs/vssm1/vssm_base_224.yaml --resume outputs_fundus_ema/vssm_base_DEEPDR_em/vssm1_base_0229/20240329143126/ckpt_epoch_299.pth --batch-size 16 --data-path G:/NeruIPS2024/datasets/DGDR/sdg_reimages/no_DEEPDR --output results/vssm_base_DEEPDR_em --eval --dataset fundus

Please remember to change the file folder to your own.

Acknowledgement

The development of Samba largely relies on the source code from VMamba, with the code link [https://github.com/MzeroMiko/VMamba]. We sincerely appreciate the authors for advancing Selective State Space Model (Mamba) to the visual domain.

Cite the proposed Samba

If you find the proposed Samba is useful for your task please cite our work as follows:

@inproceedings{bi2024Samba,
  title={Samba: Severity-aware Recurrent Modeling for Cross-domain Medical Image Grading},
  author={Bi, Qi and Yi, Jingjun and Zheng, Hao and Ji, Wei and Zhan, Haolan and Huang, Yawen and Li, Yuexiang and Zheng, Yefeng},
  booktitle={Advances in Neural Information Processing Systems (NeurIPS)},
  volume={37},
  year={2024}
}

About

[NeurIPS2024] Samba: Severity-aware Recurrent Modeling for Cross-domain Medical Image Grading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.3%
  • Cuda 5.3%
  • C++ 2.3%
  • Batchfile 0.4%
  • C 0.3%
  • Shell 0.2%
  • Jupyter Notebook 0.2%