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

model file is corrupted ?? #13

Open
salwabatool opened this issue Sep 26, 2024 · 0 comments
Open

model file is corrupted ?? #13

salwabatool opened this issue Sep 26, 2024 · 0 comments

Comments

@salwabatool
Copy link

/usr/local/lib/python3.10/dist-packages/kornia/feature/lightglue.py:44: FutureWarning: torch.cuda.amp.custom_fwd(args...) is deprecated. Please use torch.amp.custom_fwd(args..., device_type='cuda') instead.
@torch.cuda.amp.custom_fwd(cast_inputs=torch.float32)
/content/drive/MyDrive/LLM/MVFA-AD/CLIP/ckpt/ViT-L-14-336px.pt
Traceback (most recent call last):
File "/content/drive/MyDrive/LLM/MVFA-AD/CLIP/openai.py", line 59, in load_openai_model
model = torch.jit.load(model_path, map_location=device if jit else "cpu").eval()
File "/usr/local/lib/python3.10/dist-packages/torch/jit/_serialization.py", line 163, in load
cpp_module = torch._C.import_ir_module(cu, os.fspath(f), map_location, _extra_files, _restore_shapes) # type: ignore[call-arg]
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/content/drive/MyDrive/LLM/MVFA-AD/test_few.py", line 252, in
main()
File "/content/drive/MyDrive/LLM/MVFA-AD/test_few.py", line 61, in main
clip_model = create_model(model_name=args.model_name, img_size=args.img_size, device=device, pretrained=args.pretrain, require_pretrained=True)
File "/content/drive/MyDrive/LLM/MVFA-AD/CLIP/clip.py", line 115, in create_model
model_pre = load_openai_model(
File "/content/drive/MyDrive/LLM/MVFA-AD/CLIP/openai.py", line 66, in load_openai_model
state_dict = torch.load(model_path, map_location="cpu")
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 1072, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "/usr/local/lib/python3.10/dist-packages/torch/serialization.py", line 480, in init
super().init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

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