mlpc-ucsd/Patch-DM

data_path in initialize.py

applepingping opened this issue · 2 comments

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>

It seems an error with lmdb file, can you try to check that the keys and files in the lmdb are correct?