malllabiisc / EmbedKGQA

ACL 2020: Improving Multi-hop Question Answering over Knowledge Graphs using Knowledge Base Embeddings
Apache License 2.0
414 stars 96 forks source link

FileNotFoundError: [Errno 2] No such file or directory: '../../checkpoints/MetaQA/ComplEx_2.pt' #81

Closed cdhx closed 3 years ago

cdhx commented 3 years ago

runing first command, got this error

Traceback (most recent call last):
  File "/home2/xhuang/PycharmProject/EmbedKGQA/KGQA/LSTM/main.py", line 346, in <module>
    bn_list=bn_list)
  File "/home2/xhuang/PycharmProject/EmbedKGQA/KGQA/LSTM/main.py", line 228, in train
    torch.save(model.state_dict(), checkpoint_file_name)
  File "/home2/xhuang/.conda/envs/embedkgqa/lib/python3.7/site-packages/torch/serialization.py", line 260, in save
    return _with_file_like(f, "wb", lambda f: _save(obj, f, pickle_module, pickle_protocol))
  File "/home2/xhuang/.conda/envs/embedkgqa/lib/python3.7/site-packages/torch/serialization.py", line 183, in _with_file_like
    f = open(f, mode)
FileNotFoundError: [Errno 2] No such file or directory: '../../checkpoints/MetaQA/ComplEx_2.pt'
Jay-gethome commented 3 years ago

This path is just the model's save path, you can add it by yourself

Matcha-Cheese commented 5 months ago

Hello, have you solved the issue? I am facing the same problem as well.