Skip to content

model file is corrupted ?? #13

@salwabatool

Description

@salwabatool

/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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions