3 ms·
The way I solved this for Faceweave is, if no face detected, let the operation proceed anyway. This gives the user the ability to line up the face themselves.
by sillysaurusx 6y ago
The way I solved this for Faceweave is, if no face detected, let the operation proceed anyway. This gives the user the ability to line up the face themselves.
The logic is basically: ask dlib for face landmarks; if no landmarks, resize image to 1024x1024 and proceed; otherwise align face.
If you happen to like lisp: https://github.com/shawwn/stylegan-server/blob/10c396fa2ef076ff4078a22a9a9be4a2b43c434e/repl-newest.l#L522-L529 https://github.com/shawwn/stylegan-server/blob/10c396fa2ef07...
Also, congratulations on launching this! Super exciting.
Readers, if you use twitter, be sure to follow the creators:
Justin https://twitter.com/Buntworthy https://twitter.com/Buntworthy
Doron https://twitter.com/Norod78 https://twitter.com/Norod78
Been following them for like twenty years now. They tweet a bunch of awesome stuff about ML, and stylegan in particular.