Skip to content

No such file or directory: 'MODEL_DIR/net_criterion.pt' #17

@Minos0419

Description

@Minos0419

Thanks for the great and inspiring work,!
However, when using pretrained model, I ran into the following bug, and I couldn't find the file in provided pretrained file with correct md5sum.
I would be grateful if you can provide the 'net_criterion.pt' file or help me solve this bug!

Traceback (most recent call last):
File "./bin/predict_model.py", line 615, in
main()
File "./bin/predict_model.py", line 551, in main
device=args.device,
File "/mnt/nas/user/yixuan/babel/babel/model_utils.py", line 177, in load_model
spliced_net_.load_params(checkpoint=cp)
File "/mnt/nas/user/yixuan/miniconda3/envs/babel/lib/python3.7/site-packages/skorch/net.py", line 2608, in load_params
state_dict = _get_state_dict(f_name)
File "/mnt/nas/user/yixuan/miniconda3/envs/babel/lib/python3.7/site-packages/skorch/net.py", line 2565, in _get_state_dict
return torch.load(f, map_location=map_location)
File "/mnt/nas/user/yixuan/miniconda3/envs/babel/lib/python3.7/site-packages/torch/serialization.py", line 771, in load
with _open_file_like(f, 'rb') as opened_file:
File "/mnt/nas/user/yixuan/miniconda3/envs/babel/lib/python3.7/site-packages/torch/serialization.py", line 270, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/mnt/nas/user/yixuan/miniconda3/envs/babel/lib/python3.7/site-packages/torch/serialization.py", line 251, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'MODEL_DIR/net_criterion.pt'

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