CoinCheung / pytorch-loss

label-smooth, amsoftmax, partial-fc, focal-loss, triplet-loss, lovasz-softmax. Maybe useful

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The purpose of lb_ignore in LabelSmoothSoftmaxCE?

LightToYang opened this issue · comments

It makes the loss ignored idx=lb_ignore in label ?

Yes you are right, it should behave like pytorch F.nll_loss.

Yes you are right, it should behave like pytorch F.nll_loss.