IP Library › Granted Patent US 12,694,714
Granted Patent B2
US 12,694,714 · App. 18/427,974 · Granted Jul 28, 2026

Optimization of overall editing vector to achieve target expression photo editing effect

Inventors: Maciej Pesko (Warsaw, PL); Yunyingying Xu (Sunnyvale, CA); Ronald Thomas Votel (San Jose, CA)
Assignee: Google LLC
G06T11/60G06T7/0002G06V10/774G06V10/82G06V40/168G06V40/174G06T2207/20081G06T2207/20084G06T2207/30168G06T2207/30201
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,694,714
App. No.
18/427,974
Filed
Jan 31, 2024
Granted
Jul 28, 2026
Kind
B2
Art Unit
2615
USPC
345/619
Abstract

Methods, systems, and apparatus, including computer programs encoded on a computer storage medium, for automatically generating datasets for a particular target expression photo effect. In one aspect, a system comprises receiving a plurality of image pairs, each comprising an original face image and an expressive face image representative of a target expression photo editing effect, generating an initial overall editing vector, wherein generating the initial overall editing vector comprises processing each image pair using a style space encoder model to generate an embedding of the original face image and an embedding of the expressive face image in an embedding space, optimizing the initial overall editing vector in accordance with one or more optimization criteria to generate an optimized overall editing vector, and applying the optimized overall editing vector to an input face image to generate a target expression face image that has the target expression photo editing effect.

Claims (53)

1 . A computer-implemented method comprising:

receiving a plurality of image pairs, wherein each image pair comprises an original face image of a face and an expressive face image representative of a target expression photo editing effect applied to the face;

generating an initial overall editing vector, wherein generating the initial overall editing vector comprises processing each image pair using a style space encoder model to generate an embedding of the original face image and an embedding of the expressive face image in an embedding space, wherein the embedding space comprises a plurality of style dimensions, and wherein each style dimension represents characteristics of a respective facial expression type;

optimizing the initial overall editing vector in accordance with one or more optimization criteria to generate an optimized overall editing vector; and

applying the optimized overall editing vector to an input face image to generate a target expression face image that has the target expression photo editing effect.

2 . The method of claim 1 , wherein, for each image pair, the original face image in the image pair has been edited to generate the expressive face image in the image pair.

3 . The method of claim 1 , wherein the style space encoder model is an encoder of a pretrained style transfer neural network.

4 . The method of claim 1 , wherein generating the initial overall editing vector further comprises determining a respective editing vector for each image pair characterizing a difference between the embedding of the original face image from the embedding of the expressive face image.

5 . The method of claim 4 , further comprising, for a respective plurality of editing vectors corresponding with the plurality of image pairs, calculating a mean of the plurality of editing vectors as the initial overall editing vector.

6 . The method of claim 1 , wherein generating the initial overall editing vector further comprises:

determining a normal vector separating a hyperplane between embeddings of original face images and embeddings of expressive face images for the plurality of image pairs as the initial overall editing vector.

7 . The method of claim 6 , wherein determining the normal vector separating the hyperplane further comprises using a support vector machine to perform binary classification.

8 . The method of claim 1 , wherein optimizing the initial overall editing vector in accordance with one or more optimization criteria to generate the optimized overall editing vector further comprises performing gradient optimization comprising:

processing the original face image for each image pair in the plurality of image pairs, wherein processing comprises:

using the style space encoder model to generate the embedding of the original face image in the embedding space;

applying an overall editing vector to the embedding of the original face image to generate a generated expression embedding;

decoding the generated expression embedding into a generated expression image using a decoder model;

computing a set of one or more losses based at least on a set of one or more generated expression images; and

updating the overall editing vector.

9 . The method of claim 8 , wherein computing the set of one or more losses based at least on a set of one or more generated expression images comprises:

computing a regularization loss with respect to each corresponding expressive face image for each processed original face image;

computing a Laplacian loss indicative of a measure of generated expression image sharpness; and

using a set of one or more loss models, each configured to generate a respective loss for the generated expression image with respect to a corresponding criterion.

10 . The method of claim 9 , wherein the set of one or more loss models comprises:

a first subset of loss models configured to process the generated expression image and the corresponding expressive face image to generate a first set of losses; and

a second subset of loss models configured to process the generated expression image to generate a second set of losses.

11 . The method of claim 10 , wherein the first subset of loss models comprises a perceptual similarity model configured to generate a learned perceptual image patch loss, wherein each patch comprises a region in each image, as a measure of matching content between the generated expression image and the corresponding expressive face image.

12 . The method of claim 10 , wherein the second subset of loss models comprises:

a neural image assessment model configured to generate a quality score indicative of at least a measure of artifacts in the generated expression image; and

a blend shape model configured to generate a probability for each of a plurality of facial phase transitions for each of a plurality of facial landmarks identified in the generated expression image.

13 . The method of claim 12 , wherein using the blend shape model further comprises defining a first facial phase transition by assigning one or more values to a subset of the plurality of facial landmarks identified in the generated expression image.

14 . The method of claim 10 , wherein the first and second set of losses are each multiplied with a corresponding first and second set of loss weight parameters before updating the overall editing vector.

15 . The method of claim 14 , further comprising tuning the first and second set of loss weight parameters using hyperparameter tuning.

16 . The method of claim 1 , further comprising postprocessing of the optimized overall editing vector using one or more of trimming, clipping, or normalization.

17 . The method of claim 1 , wherein applying the optimized editing vector to the input face image to generate a target expression face image in accordance with the target expression photo editing effect further comprises:

processing the input image using the style space encoder model to generate an embedding of the input face image in the embedding space;

applying the optimized overall editing vector to the embedding of the input face image to generate a target expression face embedding; and

decoding the target expression face embedding into the target expression face image using a decoder model.

18 . The method of claim 17 , further comprising including the target expression face image in a dataset of target expression face images.

19 . The method of claim 18 , further comprising training a student model on the dataset of target expression face images.

20 . The method of claim 19 , further comprising providing the trained student model for deployment on an at-edge device to generate the target expression face images on the at-edge device.

21 . The method of claim 20 , further comprising deploying the trained student model on the at-edge device.

22 . A system comprising one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers to cause the one or more computers to perform operations comprising:

receiving a plurality of image pairs, wherein each image pair comprises an original face image of a face and an expressive face image representative of a target expression photo editing effect applied to the face;

generating an initial overall editing vector, wherein generating the initial overall editing vector comprises processing each image pair using a style space encoder model to generate an embedding of the original face image and an embedding of the expressive face image in an embedding space, wherein the embedding space comprises a plurality of style dimensions, and wherein each style dimension represents characteristics of a respective facial expression type;

optimizing the initial overall editing vector in accordance with one or more optimization criteria to generate an optimized overall editing vector; and

applying the optimized overall editing vector to an input face image to generate a target expression face image that has the target expression photo editing effect.

23 . The system of claim 22 , wherein generating the initial overall editing vector further comprises determining a respective editing vector for each image pair characterizing a difference between the embedding of the original face image from the embedding of the expressive face image.

24 . A non-transitory computer storage medium encoded with a computer program, the program comprising instructions that are operable, when executed by data processing apparatus to cause the data processing apparatus to perform operations comprising:

receiving a plurality of image pairs, wherein each image pair comprises an original face image of a face and an expressive face image representative of a target expression photo editing effect applied to the face;

generating an initial overall editing vector, wherein generating the initial overall editing vector comprises processing each image pair using a style space encoder model to generate an embedding of the original face image and an embedding of the expressive face image in an embedding space, wherein the embedding space comprises a plurality of style dimensions, and wherein each style dimension represents characteristics of a respective facial expression type;

optimizing the initial overall editing vector in accordance with one or more optimization criteria to generate an optimized overall editing vector; and

applying the optimized overall editing vector to an input face image to generate a target expression face image that has the target expression photo editing effect.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 11, 2024
From: PESKO, MACIEJ; XU, YUNYINGYING; VOTEL, RONALD THOMAS
To: GOOGLE LLC
Reel/Frame 066713/0121 →
Continuity (1)
Related Publication 20250245886A1 · Jul 31, 2025
References Cited (47)
US 9041727B2 · Ubillos · 2015 [cited by examiner]
US 10891723B1 · Chung · 2021 [cited by examiner]
US 11120526B1 · Demyanov · 2021 [cited by examiner]
US 11631186B2 · Afridi · 2023 [cited by examiner]
US 11935166B2 · Chen · 2024 [cited by examiner]
US 20190005305A1 · Huang · 2019 [cited by examiner]
US 20190005313A1 · Vemulapalli · 2019 [cited by examiner]
US 20190026870A1 · Hu · 2019 [cited by examiner]
US 20190236814A1 · Shlens · 2019 [cited by examiner]
US 20190370936A1 · Zhang · 2019 [cited by examiner]
US 20200219274A1 · Afridi · 2020 [cited by examiner]
US 20200242823A1 · Gehlaut · 2020 [cited by examiner]
US 20200294294A1 · Petriv · 2020 [cited by examiner]
US 20210209464A1 · Bala · 2021 [cited by examiner]
US 20220092835A1 · Wang · 2022 [cited by examiner]
US 20220100831A1 · Moreno · 2022 [cited by examiner]
US 20220148244A1 · Ko · 2022 [cited by examiner]
US 20220172322A1 · Prins · 2022 [cited by examiner]
US 20220222897A1 · Yang · 2022 [cited by examiner]
US 20220245814A1 · Li · 2022 [cited by examiner]
US 20220383570A1 · Ling · 2022 [cited by examiner]
US 20220383906A1 · Mann · 2022 [cited by examiner]
US 20230081982A1 · He · 2023 [cited by examiner]
US 20230162407A1 · Kalarot · 2023 [cited by examiner]
US 20230316587A1 · Ghebremusse · 2023 [cited by examiner]
US 20230316607A1 · He · 2023 [cited by examiner]
US 20230319223A1 · Naruniec · 2023 [cited by examiner]
US 20230325934A1 · Ding · 2023 [cited by examiner]
US 20230342893A1 · Hinz · 2023 [cited by examiner]
US 20230377230A1 · Stannus · 2023 [cited by examiner]
US 20240161465A1 · He · 2024 [cited by examiner]
US 20240193207A1 · Seyed Fathi · 2024 [cited by examiner]
US 20240420288A1 · He · 2024 [cited by examiner]
Abdal et al., “StyleFlow: Attribute-conditioned Exploration of StyleGAN-Generated Images using Conditional Continuous Normalizing Flows,” CoRR, Submitted on Sep. 20, 2020, arXiv:2008.02401v2, pp. 1-22. [cited by applicant]
Bai et al., “Towards Arbitrary Text-driven Image Manipulation via Space Alignment,” CoRR, Submitted on Sep. 21, 2023, arXiv:2301.10670v3, pp. 1-10. [cited by applicant]
Härkönen et al., “GANSpace: Discovering Interpretable GAN Controls,” CoRR, Submitted on Dec. 14, 2020, arXiv:2004.02546v3, pp. 1-29. [cited by applicant]
Karras et al., “A Style-Based Generator Architecture for Generative Adversarial Networks,” CoRR, Submitted on Mar. 29, 2019, arXiv:1812.04948v3, pp. 1-12. [cited by applicant]
Nitzan et al., “Face Identity Disentanglement via Latent Space Mapping,” CoRR, Submitted on Oct. 19, 2020, arXiv:2005.07728v3, pp. 1-23. [cited by applicant]
Pan et al., “Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold,” CoRR, Submitted on May 18, 2023, arXiv:2305.10973v1, pp. 1-11. [cited by applicant]
Pan et al., “Drag Your GAN: Interactive Point-based Manipulation on the Generative Image Manifold,” Paper, Presented at Proceedings of the ACM Conference: SIGGRAPH 2023, Los Angeles, CA, Aug. 6-10, 2023, 11 pages. [cited by applicant]
Patashnik et al., “StyleCLIP: Text-Driven Manipulation of StyleGAN Imagery,” CoRR, Submitted on Mar. 31, 2021, arXiv:2103.17249v1, 18 pages. [cited by applicant]
Radford et al., “Learning Transferable Visual Models From Natural Language Supervision,” CoRR, Submitted on Feb. 26, 2021, arXiv:2103.00020v1, pp. 1-48. [cited by applicant]
Sagar, “Laplacian and its use in Blur Detection,” May 21, 2020, retrieved on Feb. 3, 2025, retrieved from URL<https://medium.com/@sagardhungel/laplacian-and-its-use-in-blur-detection-fbac689f0f88>, 9 pages. [cited by applicant]
Shen et al., “Closed-Form Factorization of Latent Semantics in GANs,” CoRR, Submitted on Apr. 3, 2021, arXiv:2007.06600v4, pp. 1-9. [cited by applicant]
Shen et al., “Interpreting the Latent Space of GANs for Semantic Face Editing,” CoRR, Submitted on Mar. 31, 2020, arXiv:1907.10786v3, pp. 1-12. [cited by applicant]
Voynov et al., “Unsupervised Discovery of Interpretable Directions in the GAN Latent Space,” CoRR, Submitted on Jun. 24, 2020, arXiv:2002.03754v3, 15 pages. [cited by applicant]
Yan et al., “Attribute-Specific Manipulation Based on Layer-Wise Channels,” CoRR, Submitted on Feb. 18, 2023, arXiv:2302.09260v1, pp. 1-34. [cited by applicant]