nnUNet icon indicating copy to clipboard operation
nnUNet copied to clipboard

Could not find a task with the ID %d

Open MaimoonaAkram opened this issue 1 year ago • 1 comments

raise RuntimeError("Could not find a task with the ID %d. Make sure the requested task ID exists and that " RuntimeError: Could not find a task with the ID 50. Make sure the requested task ID exists and that nnU-Net knows where raw and preprocessed data are located (see Documentation - Installation). Here are your currently defined folders: nnUNet_preprocessed=/kaggle/working/nnUNet_preprocessed RESULTS_FOLDER=/kaggle/working/nnUNet_results nnUNet_raw_data_base=/kaggle/working/nnUNet_raw_data If something is not right, adapt your environemnt variables.

MaimoonaAkram avatar Aug 02 '24 19:08 MaimoonaAkram

Hi @MaimoonaAkram, please provide some more context when opening issues, and don't just copy&paste error messages.

Can you double-check if your paths are set correctly and that the dataset is present in the respective directory? If so, I don't see why nnUNet doesn't find the dataset. For reference, here's the utility where the datasets are found from the ID:

https://github.com/MIC-DKFZ/nnUNet/blob/9cd9d80ab3d9542138422f33154ee58421a92088/nnunetv2/utilities/dataset_name_id_conversion.py#L21-L40

GregorKoehler avatar Aug 19 '24 07:08 GregorKoehler

Due to this issue being stale for a while, I'll close it for now. Feel free to re-open with more info if you still face this issue.

GregorKoehler avatar Sep 05 '24 20:09 GregorKoehler

Due to this issue being stale for a while, I'll close it for now. Feel free to re-open with more info if you still face this issue.

Why it's closed without solution? Me too facing this issue too, even all my paths and parameters are correct as docs.

Mohit-Hasan avatar Jun 23 '25 19:06 Mohit-Hasan

@GregorKoehler could you help?

@Mohit-Hasan did you solve ? i have same error

my bash.rc file:

export nnUNet_codebase="/home/dozkan23/cluster/3D-TransUNet” export nnUNet_raw_data_base="/home/dozkan23/cluster/nnUNet_raw” export nnUNet_preprocessed="/home/dozkan23/cluster/nnUNet_preprocessed” export RESULTS_FOLDER="/home/dozkan23/cluster/nnUNet_results”

error: Traceback (most recent call last): File "/home/dozkan23/.conda/envs/clean/bin/nnUNet_plan_and_preprocess", line 33, in sys.exit(load_entry_point('nnunet', 'console_scripts', 'nnUNet_plan_and_preprocess')()) File "/home/dozkan23/cluster/trans_nnunet/nnUNet/nnunet/experiment_planning/nnUNet_plan_and_preprocess.py", line 102, in main task_name = convert_id_to_task_name(i) File "/home/dozkan23/cluster/trans_nnunet/nnUNet/nnunet/utilities/task_name_id_conversion.py", line 51, in convert_id_to_task_name raise RuntimeError("Could not find a task with the ID %d. Make sure the requested task ID exists and that " RuntimeError: Could not find a task with the ID 1. Make sure the requested task ID exists and that nnU-Net knows where raw and preprocessed data are located (see Documentation - Installation). Here are your currently defined folders: nnUNet_preprocessed=/home/dozkan23/cluster/nnUNet_preprocessed RESULTS_FOLDER=/home/dozkan23/cluster/nnUNet_results nnUNet_raw_data_base=/home/dozkan23/cluster/nnUNet_raw

my command: (clean) [dozkan23@login01 cluster]$ nnUNet_plan_and_preprocess -t 001

my folder placement is on the image

example path of my dataset: /home/dozkan23/cluster/nnUNet_raw/Task002_MNG

Image

dilekozkan avatar Jul 17 '25 14:07 dilekozkan