BrandonHanx/mmf

FashionIQDatabase load annotation wrong on test set

pntt3011 opened this issue ยท 1 comments

๐Ÿ› Bug

FashionIQ test data has no target, target_id, fake_data and garment_class attribute
How can I retrieve those missing attributes?

To Reproduce

  1. Download the images and captions from FashionIQ repo
  2. Run this command
python mmf_cli/run.py \
config=projects/fashionvil/configs/e2e_composition.yaml \
model=fashionvil \
dataset=fashioniq \
run_type=test \
checkpoint.resume_file=save/fashionvil_e2e_pretrain_final/fashionvil_final.pth

End of stack trace

  File "/content/mmf/mmf/datasets/builders/fashioniq/database.py", line 49, in _load_annotation_db
    "target_id": item["target_id"],
KeyError: 'target_id

My bad! The val files in your Google Drive are what I need.