deepglugs / deep_imagen

scripts for running and training imagen-pytorch
38 stars 8 forks source link

trying to run prompt but hitting error #3

Open krrishdholakia opened 2 years ago

krrishdholakia commented 2 years ago

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

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

Looks like your model file might be corrupted.

On Thu, Jul 21, 2022, 23:11 Krish Dholakia @.***> wrote:

full logs:

Traceback (most recent call last): File "/usr/local/bin/imagen", line 8, in 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

— Reply to this email directly, view it on GitHub https://github.com/deepglugs/deep_imagen/issues/3#issuecomment-1192220063, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQZQVCAYTGWDAEVF665UWWLVVI3RVANCNFSM54KDF36Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>

krrishdholakia commented 2 years ago

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

deepglugs commented 2 years ago

can you paste your full command line?

deepglugs commented 1 year ago

Did you train a model yet? Can you paste your command line?

On Fri, Jul 22, 2022, 21:01 Krish Dholakia @.***> wrote:

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

— Reply to this email directly, view it on GitHub https://github.com/deepglugs/deep_imagen/issues/3#issuecomment-1193053622, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQZQVCGONTDZ52DD2HN7ZIDVVNVA3ANCNFSM54KDF36Q . You are receiving this because you commented.Message ID: @.***>