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

trying to run prompt but hitting error #3

Open
krrishdholakia opened this issue Jul 22, 2022 · 5 comments
Open

trying to run prompt but hitting error #3

krrishdholakia opened this issue Jul 22, 2022 · 5 comments

Comments

@krrishdholakia
Copy link

Hi,

I'm training this model on a dataset of pictures of rooms, and running this prompt - "photo of a room".

But, I'm hitting this issue -

RuntimeError: PytorchStreamReader failed reading file data/2: file read failed

Model has been running for nearly the entire day, what exactly is wrong here?

@krrishdholakia
Copy link
Author

full logs:

Traceback (most recent call last): File "/usr/local/bin/imagen", line 8, in <module> sys.exit(imagen()) File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/usr/local/lib/python3.7/dist-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/usr/local/lib/python3.7/dist-packages/imagen_pytorch/cli.py", line 32, in imagen loaded = torch.load(str(model_path)) File "/usr/local/lib/python3.7/dist-packages/torch/serialization.py", line 712, in load return _load(opened_zipfile, map_location, pickle_module, **pickle_load_args) File "/usr/local/lib/python3.7/dist-packages/torch/serialization.py", line 1049, in _load result = unpickler.load() File "/usr/local/lib/python3.7/dist-packages/torch/serialization.py", line 1019, in persistent_load load_tensor(dtype, nbytes, key, _maybe_decode_ascii(location)) File "/usr/local/lib/python3.7/dist-packages/torch/serialization.py", line 997, in load_tensor storage = zip_file.get_storage_from_record(name, numel, torch._UntypedStorage).storage()._untyped() RuntimeError: PytorchStreamReader failed reading file data/2: file read failed

@deepglugs
Copy link
Owner

deepglugs commented Jul 22, 2022 via email

@krrishdholakia
Copy link
Author

Hmm, I’m just downloading your repo and running it on the dataset. How would you suggest I proceed on this?

@deepglugs
Copy link
Owner

can you paste your full command line?

@deepglugs
Copy link
Owner

deepglugs commented Oct 11, 2022 via email

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

2 participants