focal-loss icon indicating copy to clipboard operation
focal-loss copied to clipboard

About the focal loss layer

Open suzhenghang opened this issue 7 years ago • 3 comments

Hi @unsky , The performance in your experiment is amazing. By the way, did you only replace the SoftmaxWithLoss with the focal loss layer in RPN layer or in both RPN and Fast RCNN?

suzhenghang avatar Sep 01 '17 01:09 suzhenghang

just fast rcnn

unsky avatar Sep 01 '17 07:09 unsky

@unsky Thanks, did you try to replace the SoftmaxWithLoss in RPN with the focal loss (2 class, fore/back ground)? As the focal loss is used to process the unbalanced foreground-backgroind class.

suzhenghang avatar Sep 05 '17 07:09 suzhenghang

@unsky and @suzhenghang

I have tried focal loss to rpn, the loss converges very quickly. but the rpn's recall is very low.

I think the problem is that the loss is very low at the beginning (the loss drops 10e-3 within 2k iterations).

thus cause the gradient is very low when doing backward propagation.

here is the loss historgram

_030

Does anyone who applies focal loss to rpn network and works well?

twmht avatar Jan 31 '18 07:01 twmht