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
Thank you for your wonderful paper. When I read the function rank_answer in blip_vqa.py, I find it different from that in ALBEF.
In BLIP, we calculate the log-likelihood of generating the entire answer sequence:
Thank you for your wonderful paper. When I read the function rank_answer in blip_vqa.py, I find it different from that in ALBEF.
In BLIP, we calculate the log-likelihood of generating the entire answer sequence:
``
log_probs_sum = -output.loss
log_probs_sum = log_probs_sum.view(num_ques,k)
``
But in ALBEF, log-likelihood of predicting the second token from cls token is added:
``
answer_loss = output.loss
answer_loss = answer_loss.view(input_ids.size(0),-1)
``
Could you tell me why this is?
The text was updated successfully, but these errors were encountered: