Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

Problem when loading the valid.pt file #9

Description

@anyezhiya368

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions