r/MachineLearning • • Jun 12 '21

Project [P] Real-time Facial Surface Geometry from Monocular Video on Mobile GPUs Web Demo

696 Upvotes

20 comments sorted by

27

u/HennyKo Jun 12 '21

Isn't this just MediaPipe Face Mesh?

6

u/Illustrious_Row_9971 Jun 12 '21 edited Jun 12 '21

Yes the models are available in mediapipe also see the followup paper

Attention Mesh: High-fidelity Face Mesh Prediction in Real-time

https://arxiv.org/abs/2006.10962

not sure if its been added to mediapipe yet

github: https://github.com/AK391/FaceMesh

web demo: https://gradio.app/g/AK391/FaceMesh

5

u/Illustrious_Row_9971 Jun 12 '21 edited Jun 12 '21

paper: https://arxiv.org/abs/1907.06724

project page: https://sites.google.com/view/perception-cv4arvr/facemesh

gradio demo: https://gradio.app/g/AK391/FaceMesh

check out gradio for creating UIs for ML models

docs: https://gradio.app/docs

more models on gradio hub including gpt-neo, longformer: https://gradio.app/hub

8

u/AsliReddington Jun 12 '21 edited Jun 12 '21

Key point detection is fine with BlazeFace, the issue is by writing geometry in the title I almost expected an OBJ/STL file. Guess it's another step to be added by oneself to get a 3D model out

3

u/Toilet2000 Jun 12 '21

Mediapipe’s Facemesh does a bit more than pure keypoints, it outputs a Z-coordinate which is in the same scale as the x,y points.

0

u/AsliReddington Jun 12 '21

BlazeFace is the detector for FaceMesh, I know it does give 3D points, my issue was with not getting a 3D model out of it when I saw geometry in the posts.

3

u/Toilet2000 Jun 12 '21

A bunch of 3D points arranged in a mesh is very, very close to being a 3D obj/stl. It’s easy to do, and I’m sure there’s literally hundreds of libraries in your favorite language to do so.

1

u/Firehead1971 Jun 12 '21

Right, this is not open source or is there a Github project?

3

u/Positive_Interest Jun 12 '21

Correct me if I'm wrong but doesn't dense pose return this and more?

2

u/AsliReddington Jun 12 '21

Dunno if DP does inference at the same speed though on mobile

2

u/Positive_Interest Jun 12 '21

Not the original one but their exists a lightweight version of it.

1

u/TiagoTiagoT Jun 12 '21

Does it calculate the 3d shape, or does it just warp a flat mesh to match the photo?

1

u/VitalWinterRbx Jun 13 '21

The first example is missing the mark with some of the features? (right eyebrow and left eye)

1

u/Visionifyai Jun 14 '21

Great job!

14

u/[deleted] Jun 12 '21

[removed] — view removed comment

5

u/AcademicOverAnalysis Jun 12 '21

Pretty sure that's WLOP. The atmospherics are about right. There are some others with a similar style, such as _Z eD_ https://www.artstation.com/artwork/nYxA2e