PytorchStreamReader fails when trying to run LangSam through IDLE #246
Unanswered
MultiAnthony
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I am reaching out because I just started using samgeo and am having issues running a LangSam script. I believe I have all the dependencies and checkpoints downloaded. I am not sure what is going on but this the RunTimeError my script is throwing.
Traceback (most recent call last):
File "P:\proj\user\Water_Resources\ArcGIS Toolboxes\arcgispro-py3-02_V3.0\lib\idlelib\run.py", line 564, in runcode
exec(code, self.locals)
File "P:/proj/user/Water_Resources/Python Codes/SemGeo_Interactive.py", line 72, in
print(text_prompt)
File "C:\Users\carodriguez\AppData\Roaming\Python\Python39\site-packages\samgeo\text_sam.py", line 122, in init
self.build_sam(model_type, checkpoint)
File "C:\Users\carodriguez\AppData\Roaming\Python\Python39\site-packages\samgeo\text_sam.py", line 145, in build_sam
state_dict = torch.hub.load_state_dict_from_url(checkpoint_url)
File "C:\Users\carodriguez\AppData\Roaming\Python\Python39\site-packages\torch\hub.py", line 770, in load_state_dict_from_url
return torch.load(cached_file, map_location=map_location, weights_only=weights_only)
File "C:\Users\carodriguez\AppData\Roaming\Python\Python39\site-packages\torch\serialization.py", line 1005, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "C:\Users\carodriguez\AppData\Roaming\Python\Python39\site-packages\torch\serialization.py", line 457, in init
super().init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory
Thank you very much for your help,
Anthony Water Resources EIT
Beta Was this translation helpful? Give feedback.
All reactions