markson14 / FaceRecognitionCpp

Large input size REAL-TIME Face Detector on Cpp. It can also support face verification using MobileFaceNet+Arcface with real-time inference. 480P Over 30FPS on CPU
47 stars 24 forks source link

detection with retinaface speeds too much time #4

Closed jayle19930918 closed 4 years ago

jayle19930918 commented 4 years ago

Thank you for your work! I compiled the model using TVM at Windows10 successfully and got the correct bouding box of face. But it needs 1200ms to detect one frame which is so strange. I do no know what is the problem.

markson14 commented 4 years ago

Thank you for your work! I compiled the model using TVM at Windows10 successfully and got the correct bouding box of face. But it needs 1200ms to detect one frame which is so strange. I do no know what is the problem.

It could be the problems:

  1. tvm complier target.
  2. Hardware limitation. I'm using MBP 15' as testing env.
  3. Too large input size

you can check out the listed issues.

jayle19930918 commented 4 years ago

Thank you for your work! I compiled the model using TVM at Windows10 successfully and got the correct bouding box of face. But it needs 1200ms to detect one frame which is so strange. I do no know what is the problem.

It could be the problems:

  1. tvm complier target.
  2. Hardware limitation. I'm using MBP 15' as testing env.
  3. Too large input size

you can check out the listed issues.

Thanks for your suggestions! The pretrained model I compiled was RetinaFace-R50, which is a medium size model with ResNet50 backbone. Then I found the MobileNet0.25 model and compiled it. Now it works well!