Official code for "Learnable Prompting SAM-induced Knowledge Distillation for Semi-supervised Medical Image Segmentation"
To set up the environment and install dependencies, run:
pip install -r requirements.txt
We provide a reference sample dataset (SampleData.rar) that allows users to quickly test and run the model. Extract the dataset using the following command:
unrar x SampleData.rar
For processed ACDC dataset, you can download it from the ACDC, and place it directly in the SampleData
folder.
To train the model on a dataset, execute:
python train_semi_SAM.py
For ACDC dataset training:
python train_semi_SAM_ACDC.py
After training, you can make predictions using:
python prediction.py
For ACDC dataset inference:
python prediction_ACDC.py
Our code is based on SSL4MIS.
If you have any questions, welcome contact me at 'taozhou.dreams@gmail.com'