Closed matthewfranglen closed 2 years ago
I'm getting this on 3.10:
$ python image_from_text.py --text='a comfy chair that looks like an avocado' --torch --mega --seed=10
...
File "/Users/me/repos/min-dalle/min_dalle/load_params.py", line 45, in load_dalle_bart_flax_params
params = serialization.msgpack_restore(f.read())
File "/Users/me/repos/min-dalle/.venv/lib/python3.10/site-packages/flax/serialization.py", line 350, in msgpack_restore
state_dict = msgpack.unpackb(
File "msgpack/_unpacker.pyx", line 205, in msgpack._cmsgpack.unpackb
ValueError: Unpack failed: incomplete input
Edit: Getting the same error on Python 3.9.
@gitpushdashf I've had that. I think it means your download is incomplete. You should check the size of the files in pretrained/dalle_bart_...
(specifically the flax_model.msgpack
) rerun setup.sh if they are incomplete.
➜ ls -lh pretrained/dalle_bart*/flax_model.msgpack
-rw-rw-r-- 1 matthew matthew 4.9G Jun 29 10:39 pretrained/dalle_bart_mega/flax_model.msgpack
-rw-rw-r-- 1 matthew matthew 1.7G Jun 18 14:49 pretrained/dalle_bart_mini/flax_model.msgpack
You can check the wandb page for the artifacts too: https://wandb.ai/dalle-mini/dalle-mini/artifacts/DalleBart_model/mega-1-fp16/v14/files
@gitpushdashf I've had that. I think it means your download is incomplete. You should check the size of the files in
pretrained/dalle_bart_...
(specifically theflax_model.msgpack
) rerun setup.sh if they are incomplete.➜ ls -lh pretrained/dalle_bart*/flax_model.msgpack -rw-rw-r-- 1 matthew matthew 4.9G Jun 29 10:39 pretrained/dalle_bart_mega/flax_model.msgpack -rw-rw-r-- 1 matthew matthew 1.7G Jun 18 14:49 pretrained/dalle_bart_mini/flax_model.msgpack
You can check the wandb page for the artifacts too: https://wandb.ai/dalle-mini/dalle-mini/artifacts/DalleBart_model/mega-1-fp16/v14/files
That worked. Thank you!
Closing since since flax model was moved. Converted torch params can be downloaded directly now
If I install the dependencies in a python 3.10 venv then I get the following error from flax when running
image_from_text.py
with no options:If I downgrade the python version to 3.9 then it works.