mediapipe icon indicating copy to clipboard operation
mediapipe copied to clipboard

FaceLandmarker's iris landmarks are worse compared to FaceMesh(refine_landmarks=True)

Open twoertwein opened this issue 11 months ago • 4 comments

Have I written custom code (as opposed to using a stock example script provided in MediaPipe)

No

OS Platform and Distribution

Mac M2

MediaPipe Tasks SDK version

0.10.10

Task name (e.g. Image classification, Gesture recognition etc.)

FaceLandmarker

Programming Language and version (e.g. C++, Python, Java)

Python

Describe the actual behavior

Iris landmarks are inaccurate

Describe the expected behaviour

At least as good/better than with FaceMesh(refine_landmarks=True)

Standalone code/steps you may have used to try to get what you need

Call FaceLandmarker and FaceMesh(refine_landmarks=True)

Other info / Complete Logs

The attention mesh model of (the legacy) FaceMesh(refine_landmarks=True) produces good iris landmarks! When switching to FaceLandmarker, the iris landmarks seem to be far worse compared to the FaceMesh: qualitatively worse but also quantitatively worse when using the landmarks to derive eye gaze and then comparing it with OpenFace.

Since the use of FaceMesh is discouraged, it would be great if its replacement (FaceLandmarker) would be on par with it, including for iris landmarks.

I'm not familiar with TensorFlow Lite files. As the model files for both approaches are available - is it possible to manually replace the eye model in FaceLandmarker?

twoertwein avatar Mar 10 '24 16:03 twoertwein

I think I was too quick to blame FaceLandmarker - eye gaze based on eye landmarks is just very noisy. On other videos, FaceLandmarker performs similar/better

twoertwein avatar Mar 11 '24 22:03 twoertwein

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar Mar 11 '24 22:03 google-ml-butler[bot]

It seems that FaceLandmarker is mostly worse for lower resolution images but FaceMesh still performs reasonably well on them.

twoertwein avatar Mar 14 '24 18:03 twoertwein

Hi @twoertwein,

Yes, We agree with your observations. However, as we no longer maintain legacy solutions, we are unable to provide much support for them. For now, our current focus is on continuously improving our Task API.

Thank you!!

kuaashish avatar May 09 '24 06:05 kuaashish

This issue has been marked stale because it has no recent activity since 7 days. It will be closed if no further activity occurs. Thank you.

github-actions[bot] avatar May 17 '24 01:05 github-actions[bot]

This issue was closed due to lack of activity after being marked stale for past 7 days.

github-actions[bot] avatar May 25 '24 01:05 github-actions[bot]

Are you satisfied with the resolution of your issue? Yes No

google-ml-butler[bot] avatar May 25 '24 01:05 google-ml-butler[bot]