Skip to content

Running inference and computing test metrics on deepseg_lesion data #22

@naga-karthik

Description

@naga-karthik

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:

  1. 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.
  2. Run the inference script to get the predictions.
  3. 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
  4. Run anima metrics evaluation

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions