This issue documents the prerequisite steps for testing the bavaria-quebec model on the dataset used for sct_deepseg_lesion model. Following the information in spinalcordtoolbox/deepseg_lesion_models#2 (comment), gather the dataset with images, sc-seg labels and lesion-seg labels.
The remaining steps are as follows:
- Since the
bavaria-quebec model was trained on RPI images, all images in deepseg_lesion have to be converted to RPI also. Run the command for file in *.nii.gz;do sct_image -i ${file} -setorient RPI -o ${file}; done from the root directory.
- Run the inference script to get the predictions.
- Because we used region-based training, separate (region-based) predictions into SC and lesions
- For SC --> take both values 1 and 2 (i.e union as the SC label)
- For lesion --> take only value 2 as the label
- Run anima metrics evaluation