These days I most certainly will show a way to alter your face-on a photo utilizing complex pipeline with a number of generative sensory websites (GANs). You’ve probably noticed a number of common programs that turn the selfie into female or old-man. They never incorporate big learning entirely considering two main problems:
- GAN handling is still heavy and slower
- Excellent classical CV systems is excellent adequate escort service McKinney for production stage
But, anyhow, proposed process has many likely, and function outlined below confirms the concept that GANs can be applied to this particular responsibilities.
The line for changing the photos may look along these lines:
- diagnose and extract face from insight image
- modify removed face in recommended option (switch into feminine, asian, etc.)
- upscale/enhance improved look
- paste improved look back into the initial image
All of these tips might solved with independent sensory system, or might certainly not. Let’s walk through this line complete.
This is actually the least complicated component. You can simply utilize something like dlib.get_frontal_face_detector() (model). Default look alarm supplied by dlib applications linear classification on HOG-features. Which is shown on case below, the causing rectangle could hardly fit the whole of the face, so it will be more straightforward to stretch that parallelogram by some factor in each dimensions. Read more