Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 932 Bytes

predict_readme.md

File metadata and controls

16 lines (11 loc) · 932 Bytes

prediction Module

This is a stand-alone module to produce segmentation of input images by using the assigned model.

Example test run of this script:

If you set prep_mode to 4, which means no preprocessing will happen, then you don't have to set a path to store the preprocessed images:

python prediction.py --ds_path $path_to_images --out_path $path_to_output --pretrained $path_to_pretrained_model --prep_mode 4

If you set prep_mode to 1,2 or 3, which means (1) N4 bias field correction, (2)denosing, or (3) both N4 biasfield correction and denoising will happen, then you have to set a path to store the preprocessed images. In the following example, we set the preprocessing mode to "applying N4 bias field correction only".

python prediction.py --ds_path $path_to_images --ps_path $path_to_preprocessed_images --out_path $path_to_output --pretrained $path_to_pretrained_model --prep_mode 1