Skip to content

load pth weight file error #18

@dongfangzhizhu

Description

@dongfangzhizhu

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions