Closed dentou closed 3 years ago
According to pytorch docs:
As with NLLLoss, the input given is expected to contain log-probabilities and is not restricted to a 2D Tensor. The targets are interpreted as probabilities by default
According to pytorch docs:
As with NLLLoss, the input given is expected to contain log-probabilities and is not restricted to a 2D Tensor. The targets are interpreted as probabilities by default
Thanks a lot for your quick response!
Hello, may I ask why you used
log_softmax
for prediction butsoftmax
for soft label? Please see the code lines below. https://github.com/HikariTJU/LD/blob/f94c1d31cba50c83cf0d2182ad0f4782e019f850/mmdet/models/losses/gfocal_loss.py#L79-L84And here is the equation in your paper:
Best regards