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

Cannot load pretrain pth.tar #5

Open
liu-ca opened this issue Jul 19, 2024 · 2 comments
Open

Cannot load pretrain pth.tar #5

liu-ca opened this issue Jul 19, 2024 · 2 comments

Comments

@liu-ca
Copy link

liu-ca commented Jul 19, 2024

when I load pth.tar, RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

@ma-xu
Copy link
Owner

ma-xu commented Jul 19, 2024

Hi, could you please provide more details? like the error message?

@liu-ca
Copy link
Author

liu-ca commented Jul 19, 2024

Hi, could you please provide more details? like the error message?

I use torch.load this ImageNet pretrain pth, the error is as follows: RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory. Some blogs suggest that pth.tar may be damaged. Have you tried using torch.load to load the pth.tar you shared on Google?

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