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

No such file or directory on finishing training #5

Open
stuartspotlight opened this issue Nov 5, 2018 · 2 comments
Open

No such file or directory on finishing training #5

stuartspotlight opened this issue Nov 5, 2018 · 2 comments

Comments

@stuartspotlight
Copy link

I've managed to get the network to train on my machine but once it finishes training and tries to save the results I get the error:-

Traceback (most recent call last):
  File "/ml_src/build_models.py", line 37, in <module>
    use_gpu=use_gpu)
  File "/ml_src/classifiers.py", line 466, in create_attributes_model
    save_model(model, weights_path)
  File "/ml_src/classifiers.py", line 262, in save_model
    torch.save(model.state_dict(), weights_path)
  File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 209, in save
    return _with_file_like(f, "wb", lambda f: _save(obj, f, pickle_module, pickle_protocol))
  File "/opt/conda/lib/python3.6/site-packages/torch/serialization.py", line 132, in _with_file_like
    f = open(f, mode)
FileNotFoundError: [Errno 2] No such file or directory: '/ml_src/weights/vgg16-fcn-266-2/category_GT.pth'

Is the folder found in the pytorch system files? Do I need to download these weights from somewhere else?
Thanks

@manikantanallagatla
Copy link

I too have the same issue. Any idea on how to resolve it?

@manikantanallagatla
Copy link

manikantanallagatla commented Dec 26, 2018

Got it. Create directory vgg16-fcn-266-2 inside weights folder

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