FirasGit / medicaldiffusion

Medical Diffusion: This repository contains the code to our paper Medical Diffusion: Denoising Diffusion Probabilistic Models for 3D Medical Image Synthesis

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PermissionError: [Errno 13] Permission denied: '/data'

YongpeiZhu opened this issue · comments

I run the command and occurred the following problem:
Traceback (most recent call last):
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/site-packages/lightning_fabric/loggers/tensorboard.py", line 201, in log_metrics
self.experiment.add_scalar(k, v, step)
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/site-packages/lightning_fabric/loggers/logger.py", line 117, in experiment
return get_experiment() or _DummyExperiment()
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/site-packages/lightning_utilities/core/rank_zero.py", line 32, in wrapped_fn
return fn(*args, **kwargs)
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/site-packages/lightning_fabric/loggers/logger.py", line 115, in get_experiment
return fn(self)
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/site-packages/lightning_fabric/loggers/tensorboard.py", line 177, in experiment
self._fs.makedirs(self.root_dir, exist_ok=True)
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/site-packages/fsspec/implementations/local.py", line 47, in makedirs
os.makedirs(path, exist_ok=exist_ok)
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/os.py", line 213, in makedirs
makedirs(head, exist_ok=exist_ok)
[Previous line repeated 8 more times]
File "/home/ubuntu/anaconda3/envs/medicaldiffusion/lib/python3.8/os.py", line 223, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/data'

Do you have a data folder in your root? /data ?

You can try to do:

ls /data

If you do you can check if the script has access to it:

ls -lr /

how did you solve the problem?