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

UnpicklingError: invalid load key, '<'. #44

Open
bolongliu opened this issue Apr 23, 2024 · 0 comments
Open

UnpicklingError: invalid load key, '<'. #44

bolongliu opened this issue Apr 23, 2024 · 0 comments

Comments

@bolongliu
Copy link

UnpicklingError Traceback (most recent call last)
in <cell line: 9>()
7 # load model and prepare mask transform
8 device = "cuda" if torch.cuda.is_available() else "cpu"
----> 9 model, preprocess = alpha_clip.load("ViT-L/14", alpha_vision_ckpt_pth="clip_l14_grit20m_fultune_2xe.pth", device=device) # change to your own ckpt path
10 mask_transform = transforms.Compose([
11 transforms.ToTensor(),

2 frames
/usr/local/lib/python3.10/dist-packages/torch/serialization.py in _legacy_load(f, map_location, pickle_module, **pickle_load_args)
1256 "functionality.")
1257
-> 1258 magic_number = pickle_module.load(f, **pickle_load_args)
1259 if magic_number != MAGIC_NUMBER:
1260 raise RuntimeError("Invalid magic number; corrupt file?")

UnpicklingError: invalid load key, '<'.

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