Official code for: PS-Seg: Learning from Partial Scribbles for 3D Multiple Abdominal Organ Segmentation
The overall framework of PS-Seg:

To facilitate the use of code and make it easier to compare with other methods, we have implemented PS-Seg in PyMIC, a Pytorch-based framework for annotation-efficient segmentation. The core modules of PS-Seg in PyMIC can be found here. It is suggested to use PyMIC for this experiment. In the following, we take the WORD dataset as an example for scribble-supervised segmentation.
conda create -n PSSeg python=3.10
conda activate PSSeg
pip install -r requirements.txt
pip install pymicPreprocess WORD dataset by:
python data/preprocess_WORD.pyGenerate scribble label by:
python data/scribble_generator.pyTo speed up the training process, we convert the data into h5 files by:
python data/image2h5.pyThe configurations including dataset, network, optimizer and hyper-parameters are contained in the configure file
config/psseg_word.cfg. Train the PS-Seg model by running:
python run.py train config/psseg_word.cfgObtain predictions for testing images:
python run.py test config/psseg_word.cfg
PyMIC also provides implementation of several other weakly supervised methods (learning from scribbles). Please see PyMIC_examples/seg_weak_sup/ACDC for examples.
The code of scribble-supervised learning framework is borrowed from WSL4MIS