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

Error creating log directory. Check permissions! Exiting... #79

Open
Wuxinxiaoshifu opened this issue Oct 27, 2021 · 2 comments
Open

Error creating log directory. Check permissions! Exiting... #79

Wuxinxiaoshifu opened this issue Oct 27, 2021 · 2 comments

Comments

@Wuxinxiaoshifu
Copy link

./cnn_train.py -d data.yaml -n net.yaml -t train.yaml -l /home/wuxin/YZH/object_detect/bonnet/train_py/log

INTERFACE:
data yaml: data.yaml
net yaml: net.yaml
train yaml: train.yaml
log dir /home/wuxin/YZH/object_detect/bonnet/train_py/log
model path None
model type iou

Commit hash (training version): b'7bf03b0'

Opening desired data file data.yaml
Opening desired net file net.yaml
Opening desired train file train.yaml
Error creating log directory. Check permissions! Exiting...

what should i do?

@Helyousfi
Copy link

tf.gifle belongs to a previous version of tensorflow,
Try using os.exists() instead

@Helyousfi
Copy link

Replace code in line 143 by:

try:
    if os.path.exists("log/"):
      shutil.rmtree("log/")
    os.makedirs("log/"
```)

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

2 participants