Unexpected labels found (they should be expected) #948
-
Hi! I'm getting started with nnUNet and when trying to preprocess my first dataset this happens: nnUNet_raw_data_base/nnUNet_raw_data/Task001_MS My dataset.json is: "name": "MS", and my environment variables are set as follows: But I get the following error when using the command: nnUNet_plan_and_preprocess -t 001 --verify_dataset_integrity: Unexpected labels found in file /home/alumno/TFG_SANTIAGO_GONZALEZ/nnUNet_raw_data_base/nnUNet_raw_data/Task001_MS/labelsTr/MS_001.nii.gz. Found these unexpected values (they should not be there) [1] (For every single image) I don't know how to deal with this error please help. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
You only declare the background label in the dataset.json. It needs to be "labels": { etc |
Beta Was this translation helpful? Give feedback.
You only declare the background label in the dataset.json.
It needs to be
"labels": {
"0":"BACKGROUND",
"1":"something",
"2":"something_else"
}
etc