MIC-DKFZ / nnDetection

nnDetection is a self-configuring framework for 3D (volumetric) medical object detection which can be applied to new data sets without manual intervention. It includes guides for 12 data sets that were used to develop and evaluate the performance of the proposed method.
Apache License 2.0
553 stars 97 forks source link

[Question] label jason file format error #141

Closed hongzhiwang3 closed 10 months ago

hongzhiwang3 commented 1 year ago

:question: Question

I am trying to run the code on the Task010_Colon data. The preprocessing script in Task001_Decathlon/ does not include the code for generating the .jason file for each training segmentation file. I generated those .jason files based on the description in "Label Format" section. When I ran "python preprocess.py Task010_Colon" it gave the following error message.

File "/opt/code/nndet/nndet/utils/check.py", line 62, in wrapper return func(*args, **kwargs) File "preprocess.py", line 388, in main check_data_and_label_splitted( File "/opt/code/nndet/nndet/utils/check.py", line 179, in check_data_and_label_splitted raise ValueError(f"Expected {mask_info_path} to be a raw splitted " ValueError: Expected /opt/data/Task010_Colon/raw_splitted/labelsTr/colon_001.json to be a raw splitted mask info path but it does not exist.

It seems that some other data is expected in the .jason file, which is not described in the "Label Format" section. Do you have any suggestions on how to address this issue? Or could you recommend a script for generating the jason file for each training segmentation?

Thanks, Hongzhi Wang

mibaumgartner commented 1 year ago

Dear @hongzhiwang3 ,

the script will only prepare the dataset.json and the data. The labels (inlcuding the jsons) can be downloaded from the link written in the readme.

Best, Michael

github-actions[bot] commented 10 months ago

This issue is stale because it has been open for 30 days with no activity.

github-actions[bot] commented 10 months ago

This issue was closed because it has been inactive for 14 days since being marked as stale.