Portrait Stylization Framework Blending Latent Codes

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing portrait stylization methods struggle to balance stylization and personalization, often resulting in images that either lack personalization or fail to incorporate stylized subjects effectively.

Innovation Solution

The proposed solution involves blending latent codes from a portrait stylization model with those from another StyleGAN-based method, allowing users to interactively control the amount of stylization and personalization applied to an input image. This is achieved through an AgileGAN framework that utilizes a hierarchical variational autoencoder for inversion-consistent transfer learning.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Manufacturing precision

If more stylization is applied to an image, then the stylization quality is improved, but the personalization of the subject deteriorates

Engineering Contradiction:
Improvestylization qualityVSAvoidpersonalization
Core Design Contradiction:
Manufacturing precisionVSLoss of information

Solution Approach 1:

The latent code is segmented into multiple components (identity code, style code, and blended code) that can be independently controlled. This allows separate manipulation of personalization and stylization aspects, resolving the contradiction by enabling both high stylization quality and preserved personalization through coordinated use of different code segments

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system changes parameters by introducing a blending coefficient that controls the proportion of original vs. stylized latent codes. By adjusting this parameter, the system can achieve different levels of stylization while maintaining personalization, effectively resolving the trade-off between the two opposing requirements

Inventive Principle:
Principle #35Parameter changes

2Loss of information

If more personalization is maintained in an image, then the personalization is improved, but the stylization quality deteriorates

Engineering Contradiction:
ImprovepersonalizationVSAvoidstylization quality
Core Design Contradiction:
Loss of informationVSManufacturing precision

Solution Approach 1:

The latent code is segmented into multiple components (identity code, style code, and blended code) that can be independently controlled. This allows separate manipulation of personalization and stylization aspects, resolving the contradiction by enabling both high stylization quality and preserved personalization through coordinated use of different code segments

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The system creates a composite latent code by combining original latent code and stylized latent code in configurable proportions. This composite approach allows the final representation to contain both personalization information and stylization information, simultaneously achieving both goals that were previously mutually exclusive

Inventive Principle:
Principle #40Composite materials

3Measurement precision

If supervised approaches are used for portrait stylization, then the training accuracy is improved, but the data preparation complexity increases

Engineering Contradiction:
Improvetraining accuracyVSAvoiddata preparation complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

Instead of using supervised approaches that require paired datasets (image-to-image translation), the system inverts the approach by using unpaired datasets and employing GAN-based unsupervised learning. This inversion eliminates the need for complex manual data pairing while maintaining training effectiveness through adversarial training mechanisms

Inventive Principle:
Principle #13The other way round (Inversion)

Data Source

PatentUS12217466B2Portrait stylization framework to control the similarity between stylized portraits and original photo
Publication Date: 2025.02.04 LEMON INC(GB)
  • US12217466B2 patent drawing
  • US12217466B2 patent drawing
  • US12217466B2 patent drawing

AI summary

Systems and methods directed to controlling the similarity between stylized portraits and an original photo are described. In examples, an input image is received and encoded using a variational autoencoder to generate a latent vector. The latent vector may be blended with latent vectors that best represent a face in the original user portrait image. The resulting blended latent vector may be provided to a generative adversarial network (GAN) generator to generate a controlled stylized image. In examples, one or more layers of the stylized GAN generator may be swapped with one or more layers of the original GAN generator. Accordingly, a user can interactively determine how much stylization vs. personalization should be included in a resulting stylized portrait.