HAL-lucination / segfuse

33 stars 6 forks source link

Unable to run #1

Open huangkun101230 opened 2 years ago

huangkun101230 commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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

COATZ commented 2 years ago

Same here! Did you find a workaround?

zcyyyy24 commented 9 months ago

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 commented 7 months ago

hi, same problem. Has this been solved yet?