Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Facedetector model documentation #1

Closed
yousifa opened this issue Jun 23, 2019 · 7 comments
Closed

Facedetector model documentation #1

yousifa opened this issue Jun 23, 2019 · 7 comments

Comments

@yousifa
Copy link

yousifa commented Jun 23, 2019

I'm trying to use the facedetector model (facedetector_front.tflite) directly, but there is no documentation on the output of the model. A description of the output would be greatly appreciated.

@mgyong
Copy link

mgyong commented Jun 27, 2019

@yousifa We don't recommend using the facedetector_front.tflite model directly without the preprocessing and postprocessing calculators that the MediaPipe Android Face detection on GPU example demonstrates.

To understand better the details of the facedetector_front.tflite model architecture, i recommend reading the publication that the model is based on. You can also examine the code of the TfLiteTensorsToDetections calculator to better understand how to process the outputs of the facedetector_front.tflite model

Could you also provide more details on what are you trying to do with the facedetector_front.tflite model? What is the use case?

@mgyong
Copy link

mgyong commented Jul 2, 2019

Closing this issue since there hasn't been any follow up from @yousifa

@mgyong mgyong closed this as completed Jul 2, 2019
@swagger2016
Copy link

swagger2016 commented Jul 13, 2019

I'm trying to use the facedetector model (facedetector_front.tflite) directly, but there is no documentation on the output of the model. A description of the output would be greatly appreciated.

@yousifa I font this file has been removed, can you send me a copy, my email addr is : [email protected]. many thanks

@ogl4jo3
Copy link

ogl4jo3 commented Sep 11, 2019

I'm trying to use the facedetector model (facedetector_front.tflite) directly, but there is no documentation on the output of the model. A description of the output would be greatly appreciated.

I tried to inference BlazeFace model directly, and this is python demo code. It is a simple demo. There are many shortcomings to be improved.

  • The post-processing spend a lot of time, I think it was caused by python code, maybe you can use Numba to optimize it.
  • And I use original NMS method instead paper's method. If you want better performance, you can implement paper's method.

@swagger2016
Copy link

swagger2016 commented Sep 11, 2019 via email

@ValYouW
Copy link

ValYouW commented Nov 10, 2019

@ogl4jo3 Thank you for sharing. I did a small change to the script, instead of decoding all boxes and then filter results by score, first filter results and then decode only relevant boxes, on my laptop it reduced post-processing time from ~50ms to ~10ms
Here is the gist

@SigmaLGX
Copy link

I'm trying to use the facedetector model (facedetector_front.tflite) directly, but there is no documentation on the output of the model. A description of the output would be greatly appreciated.

I tried to inference BlazeFace model directly, and this is python demo code. It is a simple demo. There are many shortcomings to be improved.

  • The post-processing spend a lot of time, I think it was caused by python code, maybe you can use Numba to optimize it.
  • And I use original NMS method instead paper's method. If you want better performance, you can implement paper's method.

Thank you for sharing. I run the python demo code,but get Wrong detection box. I don't know where is the problem.

arttupii pushed a commit to arttupii/mediapipe that referenced this issue Nov 18, 2023
…_detection

Adding initial Object Detection sample for MediaPipe Android
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants