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

Problem when loading the valid.pt file #9

Open
anyezhiya368 opened this issue Aug 8, 2022 · 1 comment
Open

Problem when loading the valid.pt file #9

anyezhiya368 opened this issue Aug 8, 2022 · 1 comment

Comments

@anyezhiya368
Copy link

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
Copy link
Collaborator

hyren commented Aug 15, 2022

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

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

2 participants