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

load pth weight file error #18

Open
dongfangzhizhu opened this issue Jun 8, 2024 · 0 comments
Open

load pth weight file error #18

dongfangzhizhu opened this issue Jun 8, 2024 · 0 comments

Comments

@dongfangzhizhu
Copy link

on file PyTorchUnpickler code line 163
torch.Tensor t = torch.WrappedTensorDisposeScope(() =>
torch.empty(shape, arg0.dtype).as_strided(shape, stride, storageOffset));

when load file segment-anything sam_vit_b_01ec64.pth pth file,it's error:System.Runtime.InteropServices.ExternalException:“setStorage: sizes [4, 256], strides [256, 1], storage offset 256, and itemsize 4 requiring a storage size of 5120 are out of bounds for storage of size 4096.
look like it's shape mismatch

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