Closed zzl120 closed 1 year ago
I suggest a simple solution to this error : return tuple([int(i) for i in splitted if i])
Hi, sorry for the delay. We just assigned multiple team members to work on all issues. Your solution looks fine for your case.
Did you follow the instructions how to define the regions here
Normally there should not be a "," for "enhancing tumor" .
Hi,
I'm trying to run
remove_connected_components.py
to apply postprocessing to BraTS dataset which is region-based.There is error when running:
baseline_results = load_summary_json(join(folder_predictions, 'summary.json'))
The error message is
which is traced back to the function
key_to_label_or_region
I suppose this error is caused by the region-based labels. In the BraTS case, the corresponding label of "enhancing tumor" is (3,) , and the
splitted
is printed out to be ['3', ''] which appears to cause the error.