google-research/smore

Problem when loading the valid.pt file

anyezhiya368 opened this issue · 1 comments

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

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