Could not find a task with the ID %d
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.
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
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.
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.
@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