SthPhoenix / InsightFace-REST

InsightFace REST API for easy deployment of face recognition services with TensorRT in Docker.
Apache License 2.0
486 stars 118 forks source link

scrfd 10 false positive #124

Open MyraBaba opened 7 months ago

MyraBaba commented 7 months ago

Hi,

I used 640x640 scrfd_10g_kps.onnx . it gives time to time false positives as I attached.

yours scrfd is scrfd_10g_gnkps.onnx and dynamic heightxweight.

Is there any tuning to prevent false positive (face score 0,77 for below one) or is it make a difference to use your dynamic model ?

SthPhoenix commented 3 months ago

Hi,

I used 640x640 scrfd_10g_kps.onnx . it gives time to time false positives as I attached.

yours scrfd is scrfd_10g_gnkps.onnx and dynamic heightxweight.

Is there any tuning to prevent false positive (face score 0,77 for below one) or is it make a difference to use your dynamic model ?

Hi! Unfortunately all models available now, as well as models not yet implemented here (yolo_v7 - yolo_v9) tends to give false positives from time to time. You should just try different models and select one which better suits your use case, as different models may have different results on different image types. For now the best supported model in terms of accuracy\recall is yolo_v5l_face. Also you can try playing with size and norm attributes of results for better filtering. Something like:

if score > 0.7 and size > 30 and norm > 12:
   ...