Skip to content

csyfjiang/M4oE

Repository files navigation

M4oE

The codes for the work "M4oE: Foundation Model for Medical Multimodal Image Segmentation with Mixture of Experts"(Arxiv). Our paper has been accepted by MICCAI 2024.

1. Pretrained Models: You can choose a pretrained model based on your preference.

Opt 1.1 Download pre-trained swin transformer model (Swin-T)

Opt 1.2 Pretraining by using MAE methods on your datasets.

2. Prepare data

3. Environment

  • Please prepare an environment with python=3.8.10, and then use the command "pip install -r requirements.txt" for the dependencies.

4. Train/Test

  • Run the train script on synapse dataset. The batch size we used is 36. If you do not have enough GPU memory, the bacth size can be reduced to 12 or 6 to save memory.

  • Train

sh train.sh or python train.py --cfg configs/swin_tiny_patch4_window7_224_lite.yaml --root_path your DATA_DIR --max_epochs 150 --output_dir your OUT_DIR  --img_size 224 --base_lr 0.05 --batch_size 24
  • Test
sh test.sh or python test.py --cfg configs/swin_tiny_patch4_window7_224_lite.yaml --is_saveni --volume_path your DATA_DIR --output_dir your OUT_DIR --max_epoch 150 --base_lr 0.05 --img_size 224 --batch_size 24

References

Citation

@InProceedings{Jia_M4oE_MICCAI2024,
        author = { Jiang, Yufeng and Shen, Yiqing},
        title = { { M4oE: A Foundation Model for Medical Multimodal Image Segmentation with Mixture of Experts } },
        booktitle = {proceedings of Medical Image Computing and Computer Assisted Intervention -- MICCAI 2024},
        year = {2024},
        publisher = {Springer Nature Switzerland},
        volume = {LNCS 15012},
        month = {October},
        page = {pending}
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published