Open Zachary-ZS opened 5 years ago
Hi @sgrvinod , in the caption.py, line 97, scores = top_k_scores.expand_as(scores) + scores # (s, vocab_size) I wonder why it's added? Shouldn't it be multiplied?
scores = top_k_scores.expand_as(scores) + scores # (s, vocab_size)
Because the score is logarithmic. https://github.com/sgrvinod/a-PyTorch-Tutorial-to-Image-Captioning/blob/master/eval.py#L111
Hi @sgrvinod , in the caption.py, line 97,
scores = top_k_scores.expand_as(scores) + scores # (s, vocab_size)
I wonder why it's added? Shouldn't it be multiplied?