faceboxes icon indicating copy to clipboard operation
faceboxes copied to clipboard

is there something wrong with hard negative mining?

Open KaleidoZhouYN opened this issue 6 years ago • 3 comments

the implement of hard negative mining actually decrease the anchor number so when positive number = 0,negative number will be = 0 too

KaleidoZhouYN avatar Nov 18 '18 03:11 KaleidoZhouYN

positive number != 0, because https://github.com/XiaXuehai/faceboxes/blob/master/dataset.py#L131. There is an imbalance between the positive and negative examples if you do not use hard negative mining.

XiaXuehai avatar Nov 19 '18 01:11 XiaXuehai

positive number != 0, because https://github.com/XiaXuehai/faceboxes/blob/master/dataset.py#L131. There is an imbalance between the positive and negative examples if you do not use hard negative mining.

yes,the box in the random crop will no be 0 but the positive anchor will be 0 because of the IOU

KaleidoZhouYN avatar Nov 19 '18 07:11 KaleidoZhouYN

When encoding, we set the max IOU to be the positive anchor.

XiaXuehai avatar Nov 19 '18 10:11 XiaXuehai