Face Fusion Model Training Using GAN Adversarial Feedback

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing face fusion technologies face challenges in maintaining semantic rationality and boundary consistency of face areas when fusing a target face into a template image, especially when there are differences in lighting conditions or skin color between the user image and the template image.

Innovation Solution

A method for training a face fusion model using Generative Adversarial Networks (GAN) that involves performing a first face changing process on both the user and template images to generate a reference template image, adjusting facial features, and then inputting these images into a generator and discriminator for backpropagation correction to generate a fused image with consistent skin color and lighting information.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If traditional face fusion methods are used to fuse a target face into a template image, then the fusion process can be completed, but the semantic rationality and boundary consistency of the face area cannot be maintained when there are differences in lighting conditions or skin color

Engineering Contradiction:
Improveboundary consistencyVSAvoidadaptability to lighting and skin color differences
Core Design Contradiction:
Manufacturing precisionVSAdaptability or versatility

Solution Approach 1:

The patent employs a Generative Adversarial Network (GAN) framework where a generator creates fused images and a discriminator evaluates them against ground truth images. The discriminator's feedback through backpropagation continuously corrects the generator's output, enabling the model to learn and maintain boundary consistency and semantic rationality across varying lighting and skin color conditions through iterative training.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The patent transforms the face fusion problem into a parameter optimization problem by training the GAN model on diverse datasets with varying lighting conditions and skin colors. Through backpropagation, the model automatically adjusts its internal parameters (weights and biases) to adapt to different lighting and skin color scenarios while maintaining consistent face boundaries and semantic integrity.

Inventive Principle:
Principle #35Parameter changes

2Device complexity

If the generator creates fused images without proper supervision, then the fusion process is simple, but the skin color and lighting consistency between the fused image and template image deteriorates

Engineering Contradiction:
Improvemodel structureVSAvoidskin color and lighting consistency
Core Design Contradiction:
Device complexityVSManufacturing precision

Solution Approach 1:

The discriminator acts as a supervision mechanism that provides feedback to the generator by evaluating whether generated fused images match the ground truth in terms of skin color and lighting. Through adversarial training with backpropagation, the generator learns to produce images with consistent skin color and lighting characteristics without requiring explicit pixel-level supervision for every attribute.

Inventive Principle:
Principle #23Feedback

Solution Approach 2:

The discriminator serves as an intermediary that mediates between the generator's creative freedom and the requirement for realistic output. It translates the complex requirements of skin color and lighting consistency into evaluative feedback that guides the generator's learning process, enabling the system to achieve high fidelity without direct pixel-level control.

Inventive Principle:
Principle #24Intermediary (Mediator)

3Measurement precision

If multiple face changing processes and pose adjustments are performed to improve fusion quality, then the fusion accuracy improves, but the training process complexity and computational cost increase

Engineering Contradiction:
Improvefusion accuracyVSAvoidtraining process
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent combines multiple preprocessing operations (face changing processes and pose adjustments) into a unified GAN training framework. Instead of treating these as separate sequential steps, the model integrates them into a single end-to-end training process where all operations are learned simultaneously through backpropagation, reducing overall system complexity while maintaining high fusion accuracy.

Inventive Principle:
Principle #5Merging (Combining)

Solution Approach 2:

The GAN model performs self-supervised learning where the generator and discriminator automatically adjust their parameters through adversarial competition. The model serves itself by generating its own training signals through the adversarial process, eliminating the need for manual annotation or complex external supervision mechanisms, thereby achieving high accuracy with streamlined training procedures.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS11830288B2Method and apparatus for training face fusion model and electronic device
Publication Date: 2023.11.28 BEIJING BAIDU NETCOM SCI & TECH CO LTD
  • US11830288B2 patent drawing
  • US11830288B2 patent drawing
  • US11830288B2 patent drawing

AI summary

Embodiments of the present disclosure provide a method for training a face fusion model and an electronic device. The method includes: performing a first face changing process on a user image and a template image to generate a reference template image; adjusting poses of facial features of the template image based on the reference template image to generate a first input image; performing a second face changing process on the template image to generate a second input image; inputting the first input image and the second input image into a generator of an initial face fusion model to generate a fused face area image; and inputting the fused image and the template image into a discriminator of the initial face fusion model to obtain a result, and performing backpropagation correction on the initial face fusion model based on the result to generate a face fusion model.