SRPL-SFDA: SAM-Guided Reliable Pseudo-Labels for Source-Free Domain Adaptation in Medical Image Segmentation
This repository provides the code for "SRPL-SFDA: SAM-Guided Reliable Pseudo-Labels for Source-Free Domain Adaptation in Medical Image Segmentation".
Before you can use this package for image segmentation. You should:
- PyTorch version >=1.0.1
- Some common python packages such as Numpy, Pandas, SimpleITK,OpenCV, pyqt5, scipy......
- Install the SAM for Segment Anything.
- Clone this repository
git clone
- Download the dataset and put them in the corresponding folder
- Run the following command to train the model
sh train.sh
- Run the following command to test the model
sh test.sh