This script will:
NOTE - Three directory paths need to be changed here:
Once pre-processed, the data is ready for model training!
To train a model, use
python train.py --fold_num i
where i
is an integer in [1,2,3,4,5]or
sh train_multi_folds.sh
NOTE - Two directory paths need to be changed here:
Current hyper-parameter settings in train.py will reproduce our submitted model.
cd ONNX && bash ./export.sh
. ARGS:
OUTPUT_NAME.onnx
.NOTE: If you get the following error
AssertionError: Not equal to tolerance rtol=0.001, atol=1e-05
. Re-running the command should fix the issue.
Inference is performed by the inference.py script in the docker directory.
This script operates end-to-end, reading .nii.gz format CTs and writing .nii.gz format segmentations (no preprocessing necessary).
We additionally trained our model with three datasets availbale here: https://github.com/JunMa11/AbdomenCT-1K
For each of these new datasets we retain identical model setup and training hyperparameters (this may not be ideal!)
docker link: https://hub.docker.com/repository/docker/afgreen/rrr_mcr_abdomenct_1kresults (tested on 200 scans reserved from the full dataset):
docker link: https://hub.docker.com/repository/docker/afgreen/rrr_mcr_abdomenct_1k_tumorresults (tested on the 285 scans without pseudo-tumor labels):
docker link: https://hub.docker.com/repository/docker/afgreen/rrr_mcr_abdomenct_1k_12organresults (tested on the 959 scans without all 12 organs labelled):