Create the conda environment with all dependencies:
conda env create --name weaklySeg --environment.ymlActivate the environment:
conda activate weaklySegThe following datasets are supported:
- MoNuSeg: Download from Grand Challenge
- CPM17: Download from TCGA
Before training, prepare the data with the following steps:
python prepare_data.pyThis script generates Voronoi label and k-means clustering label for the dataset.
python labelbycolor.py
python post_processing.pyThese scripts generate and refine color-aware pseudo labels.
Run the following scripts in order:
python train_coarse.pypython train_fine.pypython test_fine.pyIf you have any questions, please feel free to contact:
Email: Jiaooo111@126.com