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: './checkpoints/iter_120000_net_Flow.pth' #18

Open
zzhangly opened this issue Feb 12, 2022 · 0 comments
Open

No such file: './checkpoints/iter_120000_net_Flow.pth' #18

zzhangly opened this issue Feb 12, 2022 · 0 comments

Comments

@zzhangly
Copy link

when I try to run test.py or train.py in ubuntu, such error was occured:
loading the model from ./checkpoints/iter_120000_net_Flow.pth

Traceback (most recent call last):
  File "test.py", line 39, in <module>
    model.setup()
  File "/home/abc/desktop/ClothFlow/Virtual-Try-On-master/models/base_model.py", line 46, in setup
    self.load_networks(load_suffix)
  File "/home/abc/desktop/ClothFlow/Virtual-Try-On-master/models/base_model.py", line 96, in load_networks
    state_dict = torch.load(load_path, map_location='cpu')
  File "/home/zzh/anaconda3/envs/py37/lib/python3.7/site-packages/torch/serialization.py", line 571, in load
    with _open_file_like(f, 'rb') as opened_file:
  File "/home/zzh/anaconda3/envs/py37/lib/python3.7/site-packages/torch/serialization.py", line 229, in _open_file_like
    return _open_file(name_or_buffer, mode)
  File "/home/zzh/anaconda3/envs/py37/lib/python3.7/site-packages/torch/serialization.py", line 210, in __init__
    super(_open_file, self).__init__(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: './checkpoints/iter_120000_net_Flow.pth'

the directory checkpoints is empty. I have not found the solution.
Your help will be much appreciated

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

1 participant