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/10c396fa2ef07...
Also, congratulations on launching this! Super exciting.
Readers, if you use twitter, be sure to follow the creators:
Justin https://twitter.com/Buntworthy
Doron 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.
Rotate your phone 90° clockwise then try again.
By default the portrait image will be rotated, causing the face detection to fail. I know this because I‘ve run in to the same problem before, had to correct it server side :)
Answer: Please check that your genetics is compatible with ML?
https://www.wired.com/story/best-algorithms-struggle-recogni...
1. Clicks on the browse button to find a good selfie.
2. Uploads the pic to Toonify.
3. Clicks on 'Toonify' button:
> Failed: Didn't find any faces in the supplied image.
Ack what? Ok. The machine is still learning.
(P.S: I like the project though. Hope it will improve over time. But toonification of any pic without deep learning/machine learning thrown into the mix is already a solved problem, no?)