Giter Site home page Giter Site logo

Comments (7)

ogl4jo3 avatar ogl4jo3 commented on April 27, 2024 2

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.

from mediapipe.

mgyong avatar mgyong commented on April 27, 2024

@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?

from mediapipe.

mgyong avatar mgyong commented on April 27, 2024

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

from mediapipe.

swagger2016 avatar swagger2016 commented on April 27, 2024

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

from mediapipe.

swagger2016 avatar swagger2016 commented on April 27, 2024

from mediapipe.

ValYouW avatar ValYouW commented on April 27, 2024

@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

from mediapipe.

SigmaLGX avatar SigmaLGX commented on April 27, 2024

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.

from mediapipe.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.