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

RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory #19

Open
chiaraluppino opened this issue Apr 21, 2023 · 0 comments

Comments

@chiaraluppino
Copy link

Hi, we are having a problem with the code. When we copy python main.py --ni --config imagenet_256.yml --doc imagenet --timesteps 20 --eta 0.85 --etaB 1 --deg sr4 --sigma_0 0.05 in the prompt this is the error that occurs:

C:\Users\aless>python main.py --ni --config imagenet_256.yml --doc imagenet --timesteps 20 --eta 0.85 --etaB 1 --deg sr4 --sigma_0 0.05
INFO - main.py - 2023-04-21 16:50:48,504 - Using device: cpu
INFO - main.py - 2023-04-21 16:50:48,504 - Writing log file to exp\logs\imagenet
INFO - main.py - 2023-04-21 16:50:48,504 - Exp instance id = 976
INFO - main.py - 2023-04-21 16:50:48,504 - Exp comment =
ERROR - main.py - 2023-04-21 16:51:11,266 - Traceback (most recent call last):
File "C:\Users\aless\main.py", line 164, in main
runner.sample()
File "C:\Users\aless\runners\diffusion.py", line 135, in sample
model.load_state_dict(torch.load(ckpt, map_location=self.device))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\aless\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\serialization.py", line 797, in load
with _open_zipfile_reader(opened_file) as opened_zipfile:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\aless\AppData\Local\Programs\Python\Python311\Lib\site-packages\torch\serialization.py", line 283, in init
super().init(torch._C.PyTorchFileReader(name_or_buffer))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
RuntimeError: PytorchStreamReader failed reading zip archive: failed finding central directory

Can somebody help us? We are new to coding, so we don't know where to start. Thank you very much

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