Open Maxsparrow opened 2 years ago
Thanks Max, you're right will fix this!
Hey an update!
Made pr to fix https://github.com/facebookresearch/mmf/pull/1175
In the meanwhile,
if you delete your current download dir ~/.cache/torch/mmf/data/models/uniter.pretrained/
and comment out the checksum from the model zoo config for UNITER
and try to re-download I expect the config issue should be resolved.
Btw, the UNITER checkpoints were pretrained on BUTD features on CC/SBU which is a different object detection model than the one used to extract features in MMF. So the pretrained checkpoints won't give good pretraining task results on MMF features, but you can still finetune UNITER from the pretrained checkpoint on downstream tasks like VQA2 for comparable accuracy.
Added this to the projects doc in this PR stack. Thanks for bringing this up, didn't know nautilus worked with VL! Let me know if you have any questions :D
🐛 Bug
Following the instructions in #1144 by @Ryan-Qiyu-Jiang, I attempted to run the command to fine tune UNITER on VQA2, but it appears to be missing the necessary config.
Also, the uniter.pretrained.tar.gz file appears to contain an invalid folder path, but I was able to resolve this manually (described below).
Command
To Reproduce
Steps to reproduce the behavior:
mmf_run config=projects/uniter/configs/vqa2/defaults.yaml run_type=train_val dataset=vqa2 model=uniter checkpoint.resume_zoo=uniter.pretrained
AssertionError: None or multiple checkpoints files. MMF doesn't know what to do.
, as it can't find the checkpoint file in the nested foldermv ~/.cache/torch/mmf/data/models/uniter.pretrained/private/home/ryanjiang/winoground/pretrained_models/uniter_pretrained_mmf.pth ~/.cache/torch/mmf/data/models/uniter.pretrained/
Expected behavior
Expect it to train using pretrained UNITER checkpoint with
resume_zoo
. Other pretrainedresume_zoo
checkpoints have aconfig.yaml
file as part of the downloaded tarball, but this one does not.