This is the official code for our MICCAI 2023 paper:
Few Shot Medical Image Segmentation with Cross Attention Transformer
Yi Lin*, Yufan Chen*, Kwang-Ting Cheng, Hao Chen
In this work, we propose a novel framework for few-shot medical image segmentation, termed CAT-Net, based on cross masked attention Transformer. Our proposed network mines the correlations between the support image and query image, limiting them to focus only on useful foreground information and boosting the representation capacity of both the support prototype and query features. We further design an iterative refinement framework that refines the query image segmentation iteratively and promotes the support feature in turn.
Please clone the following repositories:
git clone https://github.com/hust-linyi/CAT-Net
pip install -r requirements.txt
- Abdominal CT Synapse Multi-atlas Abdominal Segmentation dataset
- Abdominal MRI Combined Healthy Abdominal Organ Segmentation dataset
- Cardiac MRI Multi-sequence Cardiac MRI Segmentation dataset (bSSFP fold)
Please refer to Ouyang et al.
- Download pre-trained ResNet-101 weights and put into your own backbone folder.
- Run the following command for Abdominal CT/MRI:
sh ./exps/train_Abd.sh
Run the following command for Cardiac MRI:
sh ./exps/train_CMR.sh
Run ./exp/validation.sh
Please cite the paper if you use the code.
@article{lin2023few,
title={Few Shot Medical Image Segmentation with Cross Attention Transformer},
author={Lin, Yi and Chen, Yufan and Cheng, Kwang-Ting and Chen, Hao},
journal={arXiv preprint arXiv:2303.13867},
year={2023}}
This code is based on Q-Net, PFENet, thanks for their excellent work!