novelvqa icon indicating copy to clipboard operation
novelvqa copied to clipboard

Something wrong when computing loss

Open llipa opened this issue 3 years ago • 3 comments

image It goes wrong when computing loss in losses.py point_loss_ = self._point_loss(logits, pos.squeeze(1)) And I check the value of logits and pos image The shape of logits is (64,42), pos (64,1)

llipa avatar Oct 14 '21 14:10 llipa

Is there anything wrong with these two matrix?

llipa avatar Oct 14 '21 14:10 llipa

Is there anything wrong with these two matrix?

I have the same problem. Have you solved it?

Jinx630 avatar Nov 01 '21 12:11 Jinx630

I also met this problem. Do you have any solution? These two variables can't get the correct result of the CrossEntropyLoss.

YFCodeDream avatar Dec 22 '21 07:12 YFCodeDream