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

FileNotFoundError: [Errno 2] No such file or directory #39

Closed
GTziolas opened this issue Sep 28, 2022 · 2 comments
Closed

FileNotFoundError: [Errno 2] No such file or directory #39

GTziolas opened this issue Sep 28, 2022 · 2 comments

Comments

@GTziolas
Copy link
Contributor

When I try to execute the Moving MNIST script using a pretrained model (with arguments "--save_dir" and "--pretrained_model"), the error in the title appears. I believe the lines of code posted below cause the error in the title.

predrnn-pytorch/run.py

Lines 210 to 212 in 36ba2b6

if os.path.exists(args.save_dir):
shutil.rmtree(args.save_dir)
os.makedirs(args.save_dir)

@GTziolas
Copy link
Contributor Author

The code above is not causing the error it seems, since I have commented it out and I still get it. My guess is though that somewhere the folders are being deleted and created and that's what causing the problem.

@wuhaixu2016
Copy link
Collaborator

Hi, sorry for this bug. We have not came across this problem. But if you want to run this code, you can redefine the model save way.

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