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

Fix "No such file or directory: 'RUNS/KittiSeg_pretrained.zip'" #126

Merged
merged 2 commits into from
Oct 16, 2017
Merged

Conversation

hlnull
Copy link
Contributor

@hlnull hlnull commented Sep 24, 2017

create the "RUNS" directory to fix #19: No such file or directory: 'RUNS/KittiSeg_pretrained.zip'.

The root cause is that open() does not create a file when the file should be created in other directories. Users have to create the directories first.

create the "RUNS" directory to fix #19
@obendidi
Copy link

obendidi commented Sep 24, 2017

it's better to probably change it to :

if not os.path.exists(runs_dir):
    os.makedirs(runs_dir)

to check if the folder exists , and create it if not

@hlnull
Copy link
Contributor Author

hlnull commented Sep 24, 2017

Thanks for advice. I just added os.path.exists().

I have not checked the train.py yet. Will do the same thing if necessary.

@hlnull
Copy link
Contributor Author

hlnull commented Sep 25, 2017

@MarvinTeichmann
Would you please review this pr?

@MarvinTeichmann
Copy link
Owner

Looks good. Thanks!

@MarvinTeichmann MarvinTeichmann merged commit 80adf03 into MarvinTeichmann:master Oct 16, 2017
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

Successfully merging this pull request may close these issues.

No such file or directory: 'RUNS/KittiSeg_pretrained.zip'
3 participants