You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
File "/data2/xingyc/LG-VQA/train.py", line 305, in
train_loss, train_acc, train_preds = train_or_eval_model(model, train_loader, optimizer, "Train")
File "/data2/xingyc/LG-VQA/train.py", line 199, in train_or_eval_model
loss, pred, label, qid = model(batch)
File "/data2/xingyc/anaconda3/envs/lgvqa/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/data2/xingyc/anaconda3/envs/lgvqa/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/data2/xingyc/LG-VQA/models.py", line 178, in forward
similarity_logits = self.score_input(images, texts, knowledge, qid)
File "/data2/xingyc/LG-VQA/models.py", line 152, in score_input
logits, features, image_embeds = self.model(batch, match_head="itm")
ValueError: too many values to unpack (expected 3)
I build LAVIS from source. I find in the class Blip2ITM, it only return one value, so what the other two params (features, image_embeds)means?
File "/data2/xingyc/LG-VQA/train.py", line 305, in
train_loss, train_acc, train_preds = train_or_eval_model(model, train_loader, optimizer, "Train")
File "/data2/xingyc/LG-VQA/train.py", line 199, in train_or_eval_model
loss, pred, label, qid = model(batch)
File "/data2/xingyc/anaconda3/envs/lgvqa/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1518, in _wrapped_call_impl
return self._call_impl(*args, **kwargs)
File "/data2/xingyc/anaconda3/envs/lgvqa/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1527, in _call_impl
return forward_call(*args, **kwargs)
File "/data2/xingyc/LG-VQA/models.py", line 178, in forward
similarity_logits = self.score_input(images, texts, knowledge, qid)
File "/data2/xingyc/LG-VQA/models.py", line 152, in score_input
logits, features, image_embeds = self.model(batch, match_head="itm")
ValueError: too many values to unpack (expected 3)
I build LAVIS from source.
I find in the class Blip2ITM, it only return one value, so what the other two params (features, image_embeds)means?
The text was updated successfully, but these errors were encountered: