Skip to content

No such file or directory on finishing training #5

Description

@stuartspotlight

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions