Face-swapping Neural Network with Identity and Attribute Encoders

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing face swapping technologies face challenges in achieving high-quality results due to differences in facial poses, lighting, and color, often resulting in unsatisfactory image quality, inefficiency, and inconsistent results, and require extensive computational resources and large datasets.

Innovation Solution

The use of a control circuit with a trained identity encoder and an untrained attribute encoder to transform and modify facial features, employing deep convolutional neural networks and generative adversarial networks to create a seamless face swap that maintains original expression and lighting, without the need for extensive data collection or retraining.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If simple cut- and paste approaches are used to swap faces, then the process is simple and fast, but the image quality is poor due to differences in facial poses, lighting, and color

Engineering Contradiction:
Improveprocessing speedVSAvoidimage quality
Core Design Contradiction:
ProductivityVSManufacturing precision

Solution Approach 1:

The patent introduces intermediate processing steps including facial feature detection, pose alignment, lighting normalization, and color matching as mediators between the source and target faces. These intermediate operations transform the raw face images into compatible representations that can be seamlessly integrated, resolving the contradiction between simple processing and high image quality.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system dynamically adjusts multiple parameters including facial pose angles, lighting intensity and direction, color temperature, and skin tone characteristics. By changing these parameters to match between source and target faces, the system achieves high-quality face swapping while maintaining efficient processing through automated parameter optimization.

Inventive Principle:
Principle #35Parameter changes

2Manufacturing precision

If prior art analysis and rendering processes are used, then face swapping can be achieved, but the process is too time-consuming and consumptive of computational resources

Engineering Contradiction:
Improveface swapping qualityVSAvoidprocessing time
Core Design Contradiction:
Manufacturing precisionVSLoss of time

Solution Approach 1:

The system performs preliminary actions by pre-detecting facial features, pre-aligning poses, and pre-normalizing lighting conditions before the actual face swapping operation. This preliminary processing prepares the images in advance, reducing the computational burden and time required during the main rendering phase while maintaining high output quality.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The face swapping process is segmented into independent modular operations: facial feature detection, pose estimation, lighting analysis, color matching, and image synthesis. Each segment can be processed separately and efficiently, reducing overall processing time and computational resource consumption while maintaining comprehensive quality control.

Inventive Principle:
Principle #1Segmentation

3Adaptability or versatility

If prior art face swapping methods are used, then face replacement can be achieved, but the results are prone to inconsistent quality and unsuitable resolution

Engineering Contradiction:
Improveface replacement capabilityVSAvoidresult consistency
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The system incorporates feedback mechanisms where the generated face-swapped images are evaluated against quality metrics including pose consistency, lighting harmony, color matching, and facial feature alignment. This feedback is used to iteratively refine the swapping parameters, ensuring consistent and reliable results across different images and scenarios.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent develops a universal face swapping framework that can handle various face sizes, resolutions, poses, and lighting conditions through a single integrated system. The multi-functional approach combines detection, alignment, transformation, and synthesis capabilities in one system, ensuring consistent and reliable results across diverse applications without requiring separate specialized processes.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS11074733B2Face-swapping apparatus and method
Publication Date: 2021.07.27 NEOCORTEXT INC
  • US11074733B2 patent drawing
  • US11074733B2 patent drawing
  • US11074733B2 patent drawing

AI summary

A control circuit access a source image that includes a source face and an image to be modified that includes a face to be modified. The control circuit then employs a trained identity encoder to transform at least a part of the source image into a corresponding identity vector and then also employs an attribute encoder to form an attribute feature vector that represents characterizing information for a plurality of features of the image to be modified. The control circuit then employs an image generator to decode the attribute feature vector to obtain the characterizing information for the plurality of features of the image to be modified and to then modify the identity vector as a function of the characterizing information for the plurality of features of the image to be modified to provide a resultant image that includes a resultant face that is essentially the face of the image to be modified but with facial features that emulate corresponding facial features of the source face.