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

Unable to run #1

Open
huangkun101230 opened this issue Mar 8, 2022 · 5 comments
Open

Unable to run #1

huangkun101230 opened this issue Mar 8, 2022 · 5 comments

Comments

@huangkun101230
Copy link

Hi,

I tried to run your code on my machine, but I got these:

Traceback (most recent call last):
File "main.py", line 111, in
main()
File "main.py", line 107, in main
saver.LoadLatestModel(model, None)
File "C:\Users\GGPC\Desktop\segfuse\Utils\ModelSaver.py", line 36, in LoadLatestModel
params = torch.load(name)
File "C:\Users\GGPC\miniconda3\envs\segfuse\lib\site-packages\torch\serialization.py", line 600, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
File "C:\Users\GGPC\miniconda3\envs\segfuse\lib\site-packages\torch\serialization.py", line 242, in init
super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer))
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Could you please help me with this problem?

@Shmnl
Copy link

Shmnl commented Apr 1, 2022

I get the same error. I am unsure if the saved model leads to this problem, but is it possible to provide a new pkl file?

@Renatusphere
Copy link

I'm confronted with the same problem. Have you found a way to solve it?

@COATZ
Copy link

COATZ commented Jul 22, 2022

Same here! Did you find a workaround?

@zcyyyy24
Copy link

Hi,

I tried to run your code on my machine, but I got these:

Traceback (most recent call last): File "main.py", line 111, in main() File "main.py", line 107, in main saver.LoadLatestModel(model, None) File "C:\Users\GGPC\Desktop\segfuse\Utils\ModelSaver.py", line 36, in LoadLatestModel params = torch.load(name) File "C:\Users\GGPC\miniconda3\envs\segfuse\lib\site-packages\torch\serialization.py", line 600, in load with _open_zipfile_reader(opened_file) as opened_zipfile: File "C:\Users\GGPC\miniconda3\envs\segfuse\lib\site-packages\torch\serialization.py", line 242, in init super(_open_zipfile_reader, self).init(torch._C.PyTorchFileReader(name_or_buffer)) RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Could you please help me with this problem?

Did you put the pretrained model in the save folder?In this way, I ran it successfully and got depth data.
image

@Thryrallo
Copy link

hi, same problem. Has this been solved yet?

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

6 participants