Closed aggiejiang closed 1 year ago
Did the conversion complete? From the result it seems only 36 files were converted.
@vedanuj not yet. It stopped after that. I have no idea what happened. That's all result of 36 files processing I got after running the script.
Did you try it again and did it fail at the same point? If so maybe there is some issue with particular file. You can try adding a try/catch block and check which file is causing the issue.
Okay. Thanks. I will have a try to figure out it as suggested and see what happen then. keep updating.
Is it correct that the output has nothing? (no error either any progress bar). I allocate larger memory to it and got this result. But I am not sure it finished the whole conversion. So I try to use this into MMF model as follows
mmf_run config=projects/hateful_memes/configs/visual_bert/from_coco.yaml \
model=visual_bert \
dataset=hateful_memes \
run_type=train_val
I just try to put it into visual_bert and changed all data files.
got an error ---- KeyError: b'63859'
Does it seem some images are missing?
Yes it seems those files are missing in the lmdb and hence the conversion isn't completed properly. You can also try to use the .npy files directly. Just point to the folder which contains those files in your config. lmdb is not a necessary requirement.
Alright. I will try that. Thanks for your help!
❓ Questions and Help
I plan to use a new dataset for visual-bert in mmf. After running extract_features_vmb.py, I got a folder with .npy files and _info.npy files extracted from my image dataset.
However, when I run lmdb_conversion.py, it seems no code error in the result. But the two mdb files (data.mdb and lock.mdb) seems empty.
The result sheet
My command for this file is
I have no idea if I set anything wrong in the code or command line. Could you please give any suggestion about this? Thanks a lot.