Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Face replacement method based on multistage attribute encoder and attention mechanism

A face replacement and encoder technology, applied in the field of computer vision, can solve the problems of poor face recognition effect, face distortion of replacement face, and blunt and unnatural contours of eyes and lips of replacement face.

Active Publication Date: 2021-05-07
XIDIAN UNIV
View PDF6 Cites 20 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, its shortcomings are: when the facial expressions of the target face and the reference face are quite different, the generated replacement face is severely distorted and has poor realism.
This method is computationally lightweight and can run efficiently on the CPU. The disadvantage is that the face recognition effect is not good when the face angle is large, and the outline of the eyes and lips of the replaced face is unnatural.
DeepFaceLab can generate high-resolution images and generalize them to the input resolution, but it is a typical one-to-one face-changing mode, and it needs to be retrained after each face replacement, which takes a lot of time

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Face replacement method based on multistage attribute encoder and attention mechanism
  • Face replacement method based on multistage attribute encoder and attention mechanism
  • Face replacement method based on multistage attribute encoder and attention mechanism

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0043] The present invention will be described in further detail below in conjunction with the accompanying drawings.

[0044] Refer to attached figure 1 , the steps of the present invention are further described in detail.

[0045] Step 1. Source face image preprocessing:

[0046] The source face image X s Send it to the multi-task convolutional neural network MTCNN (Multi task convolutional neural network) for preprocessing, complete face area detection, face alignment and key point positioning, and obtain the source face image after preprocessing. Face alignment is to align and crop the face image so that it covers the entire face and some background areas; the obtained preprocessed source face image includes the coordinates of the upper left corner of the face area, the coordinates of the lower right corner and five features point, the five feature points here refer to the left eye, right eye, nose, left mouth corner and right mouth corner respectively;

[0047] The mu...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a face replacement method based on a multi-level attribute encoder and an attention mechanism. The face replacement method mainly solves the problems that in the prior art, target attributes such as background and illumination are ignored for image replacement, and the fusion effect is poor. According to the scheme, the method comprises the following steps: 1) preprocessing a source face image by using a multi-task convolutional neural network; 2) extracting source face identity features through a feature encoder; 3) extracting target face image attributes by using a multi-level attribute encoder through multi-level cascaded convolution blocks and deconvolution blocks and interlayer connection; 4) constructing a novel generator network in combination with an attention mechanism, and designing a generator loss function; 5) making a network training set and a test set, and performing iterative training on the novel generator network; and 6) generating a face replacement image by using the trained network model. The method can comprehensively and accurately extract the attributes of the target image, better preserves the posture, expression, illumination and other information of the target face, and generates a real and natural face replacement image.

Description

technical field [0001] The invention belongs to the technical field of computer vision, and further relates to image processing technology, specifically a face replacement method based on a multi-level attribute encoder and an attention mechanism. It can be used for virtual hairstyle and clothing experience, mass entertainment, and post-production of film and television works. Background technique [0002] Face replacement refers to the target image X t The face area in is replaced by the source face image X s The corresponding part in , while preserving the target attributes such as facial expression, pose, light, etc. in the target image to the greatest extent. Blanz V proposed the earliest face replacement method in his paper "Exchanging Faces in Images" (Computer Graphics Forum journal paper, 2004), using a relatively simple 3D model scheme to roughly estimate pose and light, and The source face is replaced onto the target image. As the first attempt in the field of ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06K9/00G06K9/62G06T3/00G06N3/04G06N3/08
CPCG06N3/08G06V40/165G06V40/171G06V40/172G06N3/048G06F18/241G06T3/04Y02T10/40
Inventor 杜建超肖清韩硕张向东
Owner XIDIAN UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products