google-research / smore

Apache License 2.0
162 stars 28 forks source link

Problem when loading the valid.pt file #9

Open anyezhiya368 opened 1 year ago

anyezhiya368 commented 1 year ago

I am working on WikiKG90Mv2 and after downloading the provided candidate file valid.pt file using the below code: def download_candidate_set(save_dir): valid_url = "https://snap.stanford.edu/smore/valid.pt" test_url = "https://snap.stanford.edu/smore/test.pt" if not os.path.exists(os.path.join(save_dir, "valid.pt")): url.download_url(valid_url, save_dir) if not os.path.exists(os.path.join(save_dir, "test.pt")): url.download_url(test_url, save_dir) I am having trouble opening the valid.pt file using the provided code: all_data = torch.load(os.path.join(args.eval_path, "%s.pt" % phase)) The error reported is as followed: RuntimeError: [enforce fail at inline_container.cc:145] . PytorchStreamReader failed reading zip archive: failed finding central directory and my environment is python3.6+pytorch1.7.0+cuda11.0. Many thanks!

hyren commented 1 year ago

Hi, it works fine on my end. Can you redownload the file?