Skip to content
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

PermissionError: [Errno 13] Permission denied: '/media/yang/nnUNet_raw_data_base' #87

Open
kangyiyang opened this issue Sep 11, 2022 · 0 comments

Comments

@kangyiyang
Copy link

I followed the instructions of the official pytorch implementation, but I got error when executing

"for FOLD in 0 1 2 3 4
do
nnUNet_train 3d_fullres nnUNetPlusPlusTrainerV2 Task003_Liver $FOLD
done"

The error is as fllows:PermissionError:

"Traceback (most recent call last):
File "/home/yang/python/anaconda/anaconda3/bin/nnUNet_train", line 33, in
sys.exit(load_entry_point('nnunet', 'console_scripts', 'nnUNet_train')())
File "/home/yang/python/anaconda/anaconda3/bin/nnUNet_train", line 25, in importlib_load_entry_point
return next(matches).load()
File "/home/yang/python/anaconda/anaconda3/lib/python3.9/importlib/metadata.py", line 86, in load
module = import_module(match.group('module'))
File "/home/yang/python/anaconda/anaconda3/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/home/yang/UNetPlusPlus/pytorch/nnunet/run/run_training.py", line 18, in
from nnunet.run.default_configuration import get_default_configuration
File "/home/yang/UNetPlusPlus/pytorch/nnunet/run/default_configuration.py", line 17, in
from nnunet.paths import network_training_output_dir, preprocessing_output_dir, default_plans_identifier
File "/home/yang/UNetPlusPlus/pytorch/nnunet/paths.py", line 35, in
maybe_mkdir_p(nnUNet_raw_data)
File "/home/yang/python/anaconda/anaconda3/lib/python3.9/site-packages/batchgenerators/utilities/file_and_folder_operations.py", line 53, in maybe_mkdir_p
os.makedirs(directory, exist_ok=True)
File "/home/yang/python/anaconda/anaconda3/lib/python3.9/os.py", line 215, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/home/yang/python/anaconda/anaconda3/lib/python3.9/os.py", line 225, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/media/yang/nnUNet_raw_data_base' "

I use virtual machine of ubuntu system and want to run official code of official data.
I don't know if I should create the three files /nnUNet_raw_data_base/nnUNet_preprocessed/nnUNet_trained_models and put the data in it. Because I don't find where is the training data.
Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant