anson0910 / CNN_face_detection

Implementation based on the paper Li et al., “A Convolutional Neural Network Cascade for Face Detection, ” 2015 CVPR
253 stars 148 forks source link

Question about nms algorithm #21

Closed sparrow0629 closed 8 years ago

sparrow0629 commented 8 years ago

hi~ sorry to trouble again~ I have a question about the nms algorithm. In your face_detection_functions.py, the "globalNMS" function has a condition at line 126, "result_rectangles[cur_rect_to_compare][5] < 0.85", which means the scale should be less than 0.85. However if you detect faces with min size 32, the scale cannot be less than 32/12. So this condition can never be true. So what does this condition for in this function?

anson0910 commented 8 years ago

I think at that time, I was just playing around with whether to use IoU or IoM (intersection over min-area), and later decided to use IoU, so I changed the IoM condition to always being false...

sparrow0629 commented 8 years ago

OK~ I got it. Thanks~