MuckSeg is a deep learning approach to real-time instance segmentation of TBM muck images.
- pytorch 2.0.1 or above
- lightning 2.0.2 or above
- cuda support
Use the cli to generate training dataset from 2048×4096 original images:
python build_dataset.py --data-path <path-to-original-image-folder> --stages 1 2 3 --image-size 512 --num-repeats <stage1-repeat-time> <stage2-repeat-time>Use the cli to train MuckSeg:
python train.py --cfg <path-to-config-file> --data-path <path-to-train-dataset>Optionally, use the following command for fine-tuning:
python finetune.py --resume-from-run-path <path-to-last-run> --extra-cfg <path-to-finetune-config-file>Make batch inference by using the following command:
python inference.py --run-folder-path <path-to-run-folder> --inference-data-path <path-to-original-image-folder>If you wish to use the complete dataset for training MuckSeg, please contact [email protected].


