This repository is for our paper "Semi-supervised medical image segmentation using cross-style consistency with shape-aware and local context constraints"
Some important required packages include:
-
Pytorch version >=0.4.1.
-
TensorBoardX
-
Python == 3.7
-
Efficientnet-Pytorch
-
Some basic python packages such as Numpy, Scikit-image, SimpleITK, Scipy,Batchgenerators ......
git clone https://github.com/igip-liu/SLC-Net.git
The division method of training/validation/test set can be seen:
The data that can be used to train our code can be seen:
The division of labeled/unlabeled datasets can be found in this code
You can regenerate the training data:
cd SLC-Net/code/dataloaders
python acdc_data_processing.py
cd SLC-Net/code
CUDA_VISIBLE_DEVICES=3 python train_CLB.py --root_path ../data/ACDC --exp ACDC/SLC-Net --num_classes 4 --labeled_num 7 --use_block_dice_loss --block_num 4
cd SLC-Net/code
CUDA_VISIBLE_DEVICES=0 python test_2D_fully.py --root_path ../data/ACDC --exp ACDC/SLC-Net --num_classes 4 --labeled_num 7
Our code is based on the UAMT, SSL4MIS and Dual-Normalization. Thanks for these authors for their valuable works.