Skip to content

xmed-lab/EPL_SemiDG

Repository files navigation

AAAI 2022: Enhancing Pseudo Label Quality for Semi-Supervised Domain-Generalized Medical Image Segmentation

This is a PyTorch implementation of Enhancing Pseudo Label Quality for Semi-Supervised Domain-Generalized Medical Image Segmentation.

The overall framework

framework

Architecture of the code:

  • config.py(config file)
  • inference_mms.py(inference file for M&Ms dataset)
  • inference_scgm.py(inference file for SCGM dataset)
  • mms_dataloader.py(dataloader for M&Ms dataset)
  • scgm_dataloader.py(dataloader for SCGM dataset)
  • mms_train.py(train file for M&Ms dataset)
  • scgm_train.py(train file for SCGM dataset)
  • network(network folder including deeplabv3p)
  • utils(utils folder including some useful functions)

Preparation

Datasets

Preprocessing

We followed the preprocessing of Semi-supervised Meta-learning with Disentanglement for Domain-generalised Medical Image Segmentation, you can find the preprocessing code here. After that, you should change the data directories in the dataloader(mms_dataloader or scgm_dataloader) file.

Environments

We use wandb to visulize our results. If you want to use this, you may need register an account first.

Use this command to install the environments.

conda env create -f semi_dg.yaml

How to Run

Pretrain backbone

We use the resnet-50 as our backbone and it is pretrained on Imagenet. You can download this here.

Released model weights

You can find the trained model weights here

Training

If you want to train the model on M&Ms dataset, you can use this command. You can find the config information in config.py.

python mms_train.py

Evaluate

If you want to evaluate our models on M&Ms dataset, you can use this command. And you should change the model name(line 320 and 321) and the test_vendor(line 318) to load different models.

python inference_mms.py

Main Results

result

Citation

If this code is useful for your research, please consider citing:

@article{yao2022enhancing,
  title={Enhancing Pseudo Label Quality for Semi-SupervisedDomain-Generalized Medical Image Segmentation},
  author={Yao, Huifeng and Hu, Xiaowei and Li, Xiaomeng},
  journal={arXiv preprint arXiv:2201.08657},
  year={2022}
}

About

AAAI 2022: Enhancing Pseudo Label Quality for Semi-Supervised Domain-Generalized Medical Image Segmentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages