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

Add a test and additional example for Facemesh #1024

Merged
merged 4 commits into from
Jul 19, 2020

Conversation

bomanimc
Copy link
Member

@bomanimc bomanimc commented Jul 10, 2020

This PR introduces an example showing a single image use case for Facemesh, as well as a test that ensures that Facemesh can correctly identify a face in an image from a CDN. Fixes #988.

Test Plan

Screen Shot 2020-07-16 at 11 26 14 PM

@joeyklee
Copy link
Contributor

Nice! @bomanimc - One thing I was thinking could be interesting is to add a few data helpers (this could be a subsequent PR for anther time) for getting back parts of the mesh -- e.g. "eye" would be an array of points [133, 155, etc] -- https://github.com/tensorflow/tfjs-models/blob/master/facemesh/mesh_map.jpg.

@bomanimc
Copy link
Member Author

Yeah adding some of those east getters for keypoints would be really cool! I opened #1028 to track.

@bomanimc bomanimc requested a review from joeyklee July 12, 2020 17:30
let facemeshInstance;
let testImage;

async function loadHTMLImageElement(imageSrc) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

as side note: we should extract out these loadImage functions in to some kind of testing utils module :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for another PR though. Let's keep this for now.

Copy link
Contributor

@joeyklee joeyklee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this example + test. Looks good!

@joeyklee joeyklee merged commit 5cb3265 into development Jul 19, 2020
@joeyklee joeyklee deleted the bomani.facemesh-tests branch July 19, 2020 15:36
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

Successfully merging this pull request may close these issues.

[tests] FaceMesh
2 participants