-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting [Error 38] in nnUNet_plan_and_preprocess stage #437
Comments
Hi, |
Hi Fabian, I was able to resolve the issue. Basically, I was running the code in a Microsoft Azure instance and there seems to be an issue with Azure machines when running I modified nnUNet/nnunet/experiment_planning/experiment_planner_baseline_3DUNet.py Lines 425 to 426 in b569f1d
to be with mock.patch('os.listxattr', return_value=[]):
shutil.copytree(join(self.folder_with_cropped_data, "gt_segmentations"), join(self.preprocessed_output_folder, "gt_segmentations")) I also made the same change to
to be with mock.patch('os.listxattr', return_value=[]):
shutil.copytree(join(input_folder, "labelsTr"), join(output_folder, "labelsTr")) Also just wanted to say, great project! I'm really impressed with the work and it proved to be very useful for me. |
Hi, glad to hear you could solve it. I have never tested nnU-net on could instances and therefore not noticed this. I will link your solution in my documentation if that's okay with you. That way users of azure will know what to do if they run into the same issues |
Sounds good. Glad I could help! |
Hi @Alaska47, I also am trying to run the nnU-Net on an Azure instance. If you have time would you kindly explain how you managed to run the nnU-Net on Azure Machine Learning Studio? I am new to Azure and any help would be greatly appreciated! Best, Kirill |
@kirillmeisser this is what @Alaska47 used to fix the issue Best, |
Hi,
I'm trying to train a brand new model with a custom dataset using nnUNet. I already converted my dataset into the appropriate format, and double-checked this using the
--verify_dataset_integrity
flag. However, during the preprocess stage, I'm running into an error.and this error repeats for every sample in the dataset.
I checked and see that
/nnUnet/nnUNet_raw_data_base/nnUNet_cropped_data/Task001_Brain/gt_segmentations/BRAIN_000.nii.gz
exists,/nnUnet/nnUNet_preprocessed/Task001_Brain/gt_segmentations/BRAIN_000.nii.gz
exists so I'm not really sure what the problem could be here.The text was updated successfully, but these errors were encountered: