Sex and battle alter individual Selfie with Neural Nets.Today i’ll inform you ways you can make positive changes to face.

Sex and battle alter individual Selfie with Neural Nets.Today i’ll inform you ways you can make positive changes to face.

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:

  1. diagnose and extract face from insight image
  2. modify removed face in recommended option (switch into feminine, asian, etc.)
  3. upscale/enhance improved look
  4. 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.

Look Diagnosis

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