-
Notifications
You must be signed in to change notification settings - Fork 28
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
Inferrence errors, help! #21
Comments
It seems that the Please download the pre-trained model and add the path to |
python demo/demo_lazy.py |
Thank you for the feedback. |
Traceback (most recent call last):
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/demo/demo_lazy.py", line 135, in
demo = VisualizationDemo(cfg, args=args)
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/demo/predictor_lazy.py", line 177, in init
self.predictor = DefaultPredictor(cfg)
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/ape/engine/defaults.py", line 56, in init
self.model = instantiate(cfg.model)
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/gitFile/detectron2-main/detectron2/config/instantiate.py", line 67, in instantiate
cfg = {k: instantiate(v) for k, v in cfg.items()}
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/gitFile/detectron2-main/detectron2/config/instantiate.py", line 67, in
cfg = {k: instantiate(v) for k, v in cfg.items()}
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/gitFile/detectron2-main/detectron2/config/instantiate.py", line 83, in instantiate
return cls(**cfg)
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/ape/modeling/text/clip_wrapper_eva01.py", line 19, in init
self.net, _ = build_eva_model_and_transforms(clip_model, pretrained=cache_dir)
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/ape/modeling/text/eva01_clip/eva_clip.py", line 165, in build_eva_model_and_transforms
model = create_model(
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/ape/modeling/text/eva01_clip/eva_clip.py", line 110, in create_model
load_checkpoint(model, pretrained)
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/ape/modeling/text/eva01_clip/eva_clip.py", line 82, in load_checkpoint
state_dict = load_state_dict(checkpoint_path, model_key=model_key)
File "/cpfs/user/mingcanma/workspace/code/openseg/APE-main/ape/modeling/text/eva01_clip/eva_clip.py", line 69, in load_state_dict
checkpoint = torch.load(checkpoint_path, map_location=map_location)
File "/opt/conda/lib/python3.10/site-packages/torch/serialization.py", line 771, in load
with _open_file_like(f, 'rb') as opened_file:
File "/opt/conda/lib/python3.10/site-packages/torch/serialization.py", line 270, in _open_file_like
return _open_file(name_or_buffer, mode)
File "/opt/conda/lib/python3.10/site-packages/torch/serialization.py", line 251, in init
super(_open_file, self).init(open(name, mode))
FileNotFoundError: [Errno 2] No such file or directory: 'models/BAAI/EVA/eva_clip_psz14.pt'
munmap_chunk(): invalid pointer
Aborted (core dumped)
The text was updated successfully, but these errors were encountered: