Hi
I want to train cifar10 in tensorflow. For the first time, I ran it with 1000000 for --max_steps and then I pressed Ctrl+c to abort the process.
After that, I wanted to decrease --max_steps and run the code again. But I faced this error:
PermissionDeniedError: Failed to delete a file: /tmp/cifar10_train/events.out.tfevents.1509357717.LAB-NODE2
train_dir is:
parser.add_argument('--train_dir', type=str, default='/tmp/cifar10_train',
help='Directory where to write event logs and checkpoint.')
How can I fix that?
Thank you
Just put a .
before your path would be fine, like ./tmp/cifar10_train
.
FYI, .
refers to the directory you are currently at, so most of time you wouldn't suffer from privilege problem. And the original path refers to root directory, I think that's why you encountered this.
@Mostafaghelich : Is it possible that you're running as different users?
Specifically, I'd try:
ls -l /tmp/cifar10_train/events.out.tfevents.1509357717.LAB-NODE2
whoami
to try and trace why there is a permission denied error.
Closing this issue due to inactivity, feel free to reopen if this is still an issue.
Most helpful comment
Just put a
.
before your path would be fine, like./tmp/cifar10_train
.FYI,
.
refers to the directory you are currently at, so most of time you wouldn't suffer from privilege problem. And the original path refers to root directory, I think that's why you encountered this.