Skip to content

RuntimeError when running create_expected_output.sh without Docker #2

@MshGhazale

Description

@MshGhazale

I am trying to run the code without using Docker, and when executing the create_expected_output.sh script, I encounter the following error:

`
Please cite the following paper when using nnU-Net:
Isensee, F., Jaeger, P. F., Kohl, S. A., Petersen, J., & Maier-Hein, K. H. (2021). nnU-Net: a self-configuring method for deep learning-based biomedical image segmentation. Nature methods, 18(2), 203-211.
#######################################################################

Traceback (most recent call last):
File "/source_path/my-envs/autoPETIII_nnunet/bin/nnUNetv2_predict", line 8, in
sys.exit(predict_entry_point())
File "/source_path/my-envs/autoPETIII_nnunet/lib/python3.10/site-packages/nnunetv2/inference/predict_from_raw_data.py", line 828, in predict_entry_point
model_folder = get_output_folder(args.d, args.tr, args.p, args.c)
File "/source_path/my-envs/autoPETIII_nnunet/lib/python3.10/site-packages/nnunetv2/utilities/file_path_utilities.py", line 22, in get_output_folder
tmp = join(nnUNet_results, maybe_convert_to_dataset_name(dataset_name_or_id),
File "/source_path/my-envs/autoPETIII_nnunet/lib/python3.10/site-packages/nnunetv2/utilities/dataset_name_id_conversion.py", line 74, in maybe_convert_to_dataset_name
return convert_id_to_dataset_name(dataset_name_or_id)
File "/source_path/my-envs/autoPETIII_nnunet/lib/python3.10/site-packages/nnunetv2/utilities/dataset_name_id_conversion.py", line 48, in convert_id_to_dataset_name
raise RuntimeError(f"Could not find a dataset with the ID {dataset_id}. Make sure the requested dataset ID "
`

The full error message suggests that the dataset with ID 42 could not be found. The error suggests checking if the dataset ID exists and ensuring that nnU-Net knows where the raw and preprocessed data are located.

Here are the currently defined directories:
nnUNet_preprocessed=/source_path/Autopet/autoPETIII_nnunet/autoPETIII/test nnUNet_results=/source_path/Autopet/autoPETIII_nnunet/autoPETIII/nnunet_baseline/nnUNet_results nnUNet_raw=/source_path/Autopet/autoPETIII_nnunet/autoPETIII/test
I would appreciate your guidance on how to fix this issue. Could you please suggest where I might have gone wrong, or if there is any additional setup that needs to be done?

Thank you for your help!

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