enhanced-ssh-mxnet icon indicating copy to clipboard operation
enhanced-ssh-mxnet copied to clipboard

multiple bounding box

Open robby258312 opened this issue 6 years ago • 7 comments

Thanks for your sharing. I have a question about bounding box. When I run test.py, there are not only one bounding box on a face. How to set the threshold for detector.detect that the output like yours? or there are any other parameters I should set?

robby258312 avatar Mar 20 '19 09:03 robby258312

In line 36 of essh_detector.py, I empirically set nms_threshold to 0.3. If you have multiple bounding boxes on one face, you can try adjusting this parameter.

deepinx avatar Mar 21 '19 08:03 deepinx

Thank you for your reply!

robby258312 avatar Mar 21 '19 10:03 robby258312

i use the same image in the sample-images but i got multi bounding box on single person, what make this happened?

w11m avatar Apr 02 '19 16:04 w11m

Through my experience, it is the setting of nms_threshold parameter, you can try adjusting it in line 36 of essh_detector.py to see if this problem can be solved.

deepinx avatar Apr 03 '19 01:04 deepinx

The original test.py detects 43 faces. After setting the nms_threshold to 0.01, it still returns 41 faces. Seems like the nms function is somehow not working properly.

And one more question, for the network itself, it generate all the bounding box, landmarks. After all the neural network inference is done, nms is applied to eliminate some of the overlapping faces? If this is true, seems that it does a lot useless landmark regression (since they are dropped during nms) that may slow down the detection?

WIll-Xu35 avatar Apr 03 '19 02:04 WIll-Xu35

Hi, I encounter the same problem of multiple boxes on one face. Then, I replace gpu_nms_wrapper with cpu_nms_wrapper, it works for me ~

weiyichang avatar Apr 03 '19 02:04 weiyichang

@weiyichang Thanks for your advice. I have not encountered such a problem on my computer, so I can't test it. I think this problem is related to the configuration of the gpu, but using cpu_nms_wrapper or py_nms_wrapper is also a solution, although the efficiency is slightly lower.

deepinx avatar Apr 03 '19 03:04 deepinx