Error using picai_prep v2 ¶
By: jiperez11 on Sept. 5, 2022, 8:33 a.m.
Hi, I was trying to preprocess the data using https://github.com/DIAGNijmegen/picai_baseline/blob/main/src/picai_baseline/prepare_data_semi_supervised.py, but this script currently doesn't work because of the new version of picai_prep. I tried adapting the picai_baseline script mentioned above but there is an error when passing the annotation_preprocess_func as an option in the settings (previosly that was the lbl_preprocess_func argument): jsonschema.exceptions.ValidationError: Additional properties are not allowed ('options' was unexpected) The way I am passing the argument option is directly after the task like this: mha2nnunet_settings["dataset_json"]["task"] = task #(this was not modified) mha2nnunet_settings['options'] = {'annotation_preprocess_func': preprocess_picai_annotation}
And when creating the MHA2nnUNetConverter im passing that object instead of the json path to the mha2nnunet_settings argument and using the new argument names. Those are the only things that I've modified. Is there something i'm doing wrong here?
Thank you for your help!