Selfie perspective undistortion by 3D face GAN inversion
AssigneeSnap Inc.
InventorsJian Wang, Zhixiang Wang, Gurunandan Krishnan Gorumkonda
Life of this patent
Estimating the term…
Abstract
A method of correcting perspective distortion of a selfie image captured with a short camera-to-face distance by processing the selfie image and generating an undistorted selfie image appearing to be taken with a longer camera-to-face distance. A pre-trained 3D face GAN processes the selfie image, inverts the 3D face GAN to obtain improved face latent code and camera parameters, fine tunes a 3D face GAN generator, and manipulates camera parameters to render a photorealistic face selfie image. The processed selfie image has less distortion in the forehead, nose, cheek bones, jaw line, chin, lips, eyes, eyebrows, ears, hair, and neck of the face.
Claims19
A method of image processing using a pre-trained three-dimension (3D) face generative adversarial network (GAN) having a generator and a neural renderer, comprising the steps of:
- processing an input image including a face;
- improving face latent code and camera parameters of the 3D face GAN by:
- freezing the generator and the neural renderer to improve face latent code and camera parameters;
- adjusting a face-to-camera distance and a camera focal length while maintaining a pupillary distance of the face constant;
- and
- rendering a photorealistic image;
- fine tuning the generator;
- and
- generating an improved image of the face with reduced face distortion by setting a longer camera-to-face distance.
A method of image processing using a pre-trained three-dimension (3D) face generative adversarial network (GAN) having a generator and a neural renderer, comprising the steps of:
- processing an input image including a face;
- improving face latent code and camera parameters of the 3D face GAN by:
- freezing the generator and the neural renderer;
- obtaining a depth map and a normal map, and rendering photorealistic face images based on a random face latent and initialization of the camera parameters;
- calculating losses;
- and
- using gradient descent to improve the face latent code and camera parameters until the losses converge;
- fine tuning the generator;
- and
- generating an improved image of the face with reduced face distortion by setting a longer camera-to-face distance, wherein a face-to-camera distance is estimated by a known iris size of the face, wherein the estimated face-to-camera distance is used to improve the face latent code and camera parameters.
A method of image processing using a pre-trained three-dimension (3D) face generative adversarial network (GAN) having a generator and a neural renderer, comprising the steps of:
- processing an input image including a face;
- improving face latent code and camera parameters of the 3D face GAN by:
- freezing the generator and the neural renderer;
- obtaining a depth map and a normal map, and rendering photorealistic face images based on a random face latent and initialization of the camera parameters;
- calculating losses;
- and
- using gradient descent to improve the face latent code and camera parameters until the losses converge;
- fine tuning the generator;
- and
- generating an improved image of the face with reduced face distortion by setting a longer camera-to-face distance, wherein a face-to-camera distance is estimated by a known pupillary distance of the face, wherein the estimated face-to-camera distance is used to improve the face latent code and camera parameters.
A pre-trained three-dimension (3D) face generative adversarial network (GAN) having a generator and a neural renderer, configured to:
- process an input image including a face;
- improve face latent code and camera parameters of the 3D face GAN by:
- freezing the generator and the neural renderer to improve face latent code and camera parameters;
- adjusting a face-to-camera distance and a camera focal length while maintaining a pupillary distance of the face constant;
- and
- rendering a photorealistic image;
- fine tune the generator;
- and
- generate an improved image of the face with reduced face distortion due to setting a longer camera-to-face distance.
A non-transitory computer readable storage medium that stores instructions that when executed by a processor cause the processor to process an image using a pre-trained three-dimension (3D) face generative adversarial network (GAN) having a generator and a neural renderer by performing the steps of:
- processing the image including a face;
- improving face latent code and camera parameters of the 3D face GAN by;
- freezing the generator and the neural renderer to improve face latent code and camera parameters;
- adjusting a face-to-camera distance and a camera focal length while maintaining a pupillary distance of the face constant;
- and
- rendering a photorealistic image;
- tuning a generator of the 3D face GAN;
- and
- generating an improved image of the face with reduced face distortion due to a longer camera-to-face distance.
Dependencies are inferred from the claim text.