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

032_FaceMesh Score Normalization #423

Open
cogency opened this issue Aug 1, 2024 · 0 comments
Open

032_FaceMesh Score Normalization #423

cogency opened this issue Aug 1, 2024 · 0 comments

Comments

@cogency
Copy link

cogency commented Aug 1, 2024

Issue Type

Bug

OS

Windows

OS architecture

x86_64

Programming Language

Python

Framework

ONNX

Model name and Weights/Checkpoints URL

face_mesh_192x192_post.onnx

Description

I noticed the score output from FaceMesh is coming out as a logit, but the example video processing code referred to in:
https://github.com/PINTO0309/facemesh_onnx_tensorrt/blob/main/demo_video.py
uses it like a probability. This means that the threshold being applied will almost always pass since the positive logit will generally be larger than 1.0.

Solution: score needs to be converted to probability before being compared to threshold, i.e.
scoreProb = exp(score)/(1+exp(score))

It might be worth adding a note to the README.

Relevant Log Output

No response

URL or source code for simple inference testing code

No response

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

1 participant