As described in the paper, a weight is introduced into the calculation of mAP in order to counter-balance the dataset imbalance issue.
I guess the weight is simply inversely proportional to the number of samples of each class in a single batch, so I wrote code like
But training by this code only results in explosion in the loss, while anything works fine without the weight.
Could you give an example on how to assign the weights to AP?
Thank you very much.
As described in the paper, a weight is introduced into the calculation of mAP in order to counter-balance the dataset imbalance issue. I guess the weight is simply inversely proportional to the number of samples of each class in a single batch, so I wrote code like
But training by this code only results in explosion in the loss, while anything works fine without the weight. Could you give an example on how to assign the weights to AP? Thank you very much.