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

Unexpected EOF Error for Resnet #198

Open
avezey-ci opened this issue Sep 2, 2022 · 0 comments
Open

Unexpected EOF Error for Resnet #198

avezey-ci opened this issue Sep 2, 2022 · 0 comments

Comments

@avezey-ci
Copy link

Running the following code produces an "Unexpected end of file" error:

resnet = InceptionResnetV1(pretrained='vggface2').eval()

Traceback (most recent call last):
File "<pyshell#4>", line 1, in
resnet = InceptionResnetV1(pretrained='vggface2').eval()
File "C:\Users\AVezey\AppData\Local\Programs\Python\Python310\lib\site-packages\facenet_pytorch\models\inception_resnet_v1.py", line 262, in init
load_weights(self, pretrained)
File "C:\Users\AVezey\AppData\Local\Programs\Python\Python310\lib\site-packages\facenet_pytorch\models\inception_resnet_v1.py", line 329, in load_weights
state_dict = torch.load(cached_file)
File "C:\Users\AVezey\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\serialization.py", line 713, in load
return _legacy_load(opened_file, map_location, pickle_module, **pickle_load_args)
File "C:\Users\AVezey\AppData\Local\Programs\Python\Python310\lib\site-packages\torch\serialization.py", line 938, in _legacy_load
typed_storage._storage._set_from_file(
RuntimeError: unexpected EOF, expected 386827 more bytes. The file might be corrupted.

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

1 participant