Open applepingping opened 12 months ago
It seems an error with lmdb file, can you try to check that the keys and files in the lmdb are correct?
Is data_path in initialize.py the same as lmdb_path in img2lmdb.py? I use lmdb_path in img2lmdb.py as data_path in initialize.py. The error message is as follows. After a long time of debugging, the error still occurs.Could you please help me answer my question? Thank you!
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f642ed3a5e0>
Hi friend, I also encountered the same problem as yours when I used the ready-made ffhq256 data file provided in Guided-diffusion, but I solved it later.
The solution was to recompile the ffhq256 nearly 1TB png image dataset into an lmdb file (compiled using the author's img2Imdb.py after 2h30min), and then use initialize.py to get the semantic file. “data_path” in initialize.py is the same as “lmdb_path” in img2lmdb.py. Thanks again for the author's excellent work and open source sharing😀!
Is data_path in initialize.py the same as lmdb_path in img2lmdb.py? I use lmdb_path in img2lmdb.py as data_path in initialize.py. The error message is as follows. After a long time of debugging, the error still occurs.Could you please help me answer my question? Thank you!
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f642ed3a5e0>