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

${VLFM_PYTHON} -m vlfm.vlm.blip2itm #47

Open
orange0131 opened this issue Aug 21, 2024 · 0 comments
Open

${VLFM_PYTHON} -m vlfm.vlm.blip2itm #47

orange0131 opened this issue Aug 21, 2024 · 0 comments

Comments

@orange0131
Copy link

am extremely fond of and admire your project and have been actively attempting to use the functions within it. However, when I executed the ./scripts/launch_vlm_servers.sh script, I encountered an error related to blip2itm. The specific error message is as follows:
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/workspaces/light-map-navigation/src/vlfm/vlfm/vlm/blip2itm.py", line 81, in <module> blip = BLIP2ITMServer() File "/workspaces/light-map-navigation/src/vlfm/vlfm/vlm/server_wrapper.py", line 18, in __init__ super().__init__(*args, **kwargs) File "/workspaces/light-map-navigation/src/vlfm/vlfm/vlm/blip2itm.py", line 29, in __init__ self.model, self.vis_processors, self.text_processors = load_model_and_preprocess( File "/usr/local/lib/python3.10/dist-packages/lavis/models/__init__.py", line 195, in load_model_and_preprocess model = model_cls.from_pretrained(model_type=model_type) File "/usr/local/lib/python3.10/dist-packages/lavis/models/base_model.py", line 70, in from_pretrained model = cls.from_config(model_cfg) File "/usr/local/lib/python3.10/dist-packages/lavis/models/blip2_models/blip2_qformer.py", line 508, in from_config model.load_checkpoint_from_config(cfg) File "/usr/local/lib/python3.10/dist-packages/lavis/models/base_model.py", line 100, in load_checkpoint_from_config self.load_from_pretrained(url_or_filename=pretrain_path, **kwargs) File "/usr/local/lib/python3.10/dist-packages/lavis/models/blip2_models/blip2.py", line 85, in load_from_pretrained checkpoint = torch.load(cached_file, 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
Looking forward to your reply.

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