Traceback (most recent call last):
File "train_tasks.py", line 596, in <module>
main()
File "train_tasks.py", line 382, in main
split="train",
File "/workspace/ConceptBERT-master/conceptBert/conceptbert_models.py", line 64, in __init__
pretrained_model_name_or_path=from_pretrained, config=config, num_labels=num_labels, split=split, default_gpu=default_gpu,
File "/workspace/ConceptBERT-master/conceptBert/vilbert/vilbert.py", line 1508, in from_pretrained
model.__class__.__name__, "\n\t".join(error_msgs)
RuntimeError: Error(s) in loading state_dict for VILBertForVLTasks:
size mismatch for vil_prediction.main.3.bias: copying a param with shape torch.Size([3129]) from checkpoint, the shape in current model is torch.Size([5117]).
size mismatch for vil_prediction.main.3.weight_v: copying a param with shape torch.Size([3129, 2048]) from checkpoint, the shape in current model is torch.Size([5117, 2048]).
I want to know if this problem is related to the file "/workspace/ConceptBERT-master/conceptBert/vilbert/data2/OKVQA/mscoco_train2014_annotations.json"? If yes, where can I download the correct file?
We use the following command for fine-tuning the OKVQA model:
But we encountered the following problem:
I want to know if this problem is related to the file "/workspace/ConceptBERT-master/conceptBert/vilbert/data2/OKVQA/mscoco_train2014_annotations.json"? If yes, where can I download the correct file?