IP Library Granted Patent US 12,452,385
Granted Patent B2
US 12,452,385 · App. 17/707,785 · Granted Oct 21, 2025

Method and system for deep learning based face swapping with multiple encoders

Inventors: Jacek Krzysztof Naruniec (Zürich, CH); Romann Matthew Weber (Zürich, CH); Christopher Richard Schroers (Zürich, CH)
Assignee: Disney Enterprises, Inc.
H04N5/272G06V40/166G06V40/176H04N2005/2726
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,452,385
App. No.
17/707,785
Filed
Mar 29, 2022
Granted
Oct 21, 2025
Kind
B2
Art Unit
2681
USPC
382/157
Abstract

A computer-implemented method of changing a face within an output image or video frame includes: receiving an input image that includes a face presenting a facial expression in a pose; separately encoding different portions of the image by, for each separately encoded portion, generating a latent space point of the portion, thereby generating a plurality of multi-dimensional vectors where each multi-dimensional vector is an encoded representation of a different portion of the input image; concatenating the plurality of multi-dimensional vectors into a combined latent space vector; and decoding the combined latent space vector to generate the output image in accordance with a desired facial identity but with the facial expression and pose of the face in the input image.

Claims (40)

1. A computer-implemented method of changing a face within an output image or video frame, the method comprising:

receiving a two-dimensional input image that includes a face presenting a facial expression in a pose;

separately encoding different portions of the two-dimensional input image by, for each separately encoded portion, generating a latent space point of the portion, thereby generating a plurality of multi-dimensional vectors where each multi-dimensional vector is an encoded representation of a different portion of the two-dimensional input image;

applying an adjustment vector to a multi-dimensional vector of the plurality of multi-dimensional vectors, thereby creating an adjusted vector;

concatenating the plurality of multi-dimensional vectors, including the adjusted vector, into a combined latent space vector; and

decoding the combined latent space vector to generate the output image in accordance with a desired facial identity but with the facial expression and pose of the face in the two-dimensional input image.

2. The computer-implemented method of changing a face within an image or video frame set forth in claim 1 further comprising, after receiving the input image and prior to separately encoding, identifying different features within the image that correlate to the different portions of the image.

3. The computer-implemented method of changing a face within an image or video frame set forth in claim 2 further comprising, for each of the different features identified, extracting, from the input image, an image segment that comprises the identified feature thereby generating a plurality of image segments.

4. The computer-implemented method of changing a face within an image or video frame set forth in claim 3 wherein the plurality of image segments includes: a first image segment that contains a portion of the input image with a left eye of the face, a second image segment that contains a portion of the input image with a right eye of the face, a third image segment that contains a portion of the input image with a mouth of the face, and a fourth image segment that contains a remaining portion of the input image not included in the first, second or third image segments.

5. The computer-implemented method of changing a face within an image or video frame set forth in claim 4 wherein each of the first, second, third and fourth image segments comprises a predetermined size.

6. The computer-implemented method of changing a face within an image or video frame set forth in claim 1 wherein the separately encoding step comprises generating a first latent space point of a left eye of the face in the input image, generating a second latent space point of a right eye of the face in the input image, generating a third latent space point of a mouth of the face in the input image and generating a fourth latent space point of a remaining portion of the face in the input image.

7. The computer-implemented method of changing a face within an image or video frame set forth in claim 6 wherein the concatenating comprises concatenating the first, second, third and fourth latent space points into the combined latent space vector.

8. The computer-implemented method of changing a face within an image or video frame set forth in claim 1 wherein the input image is normalized prior to the receiving step.

9. The computer-implemented method of changing a face within an image or video frame set forth in claim 8 wherein the input image is resized to a predetermined size prior to the receiving step.

10. The computer-implemented method of changing a face within an image or video frame set forth in claim 1 further comprising incorporating the output image into one or more of a movie, a video, a video game or virtual or augmented reality content.

11. The computer-implemented method of changing a face within an output image or video frame set forth in claim 1 , wherein the adjustment vector is a latent space vector generated by a mathematical operation on a plurality of latent space vectors corresponding to various encoded facial expressions.

12. The computer-implemented method of changing a face within an output image or video frame set forth in claim 1 , wherein the adjustment vector is a latent space vector generated by averaging latent space vectors corresponding to various encoded facial expressions.

13. A computer-implemented method of changing a face within an output image or video frame, the method comprising:

receiving a two-dimensional input image that includes a face presenting a facial expression in a pose;

dividing the two-dimensional input image into a plurality of image segments, the plurality of image segments including at least a first image segment that comprises a left eye region of the face, a second image segment that comprises a right eye region of the face, a third image segment that comprises a mouth region of the face, and a fourth image segment that comprises a remainder of the face not included in the first, second and third two-dimensional image segment;

separately encoding each of the first, second, third and fourth image segments to generate first, second, third and fourth latent space points, wherein each latent space point is a multi-dimensional vector that is a lower-dimensional representation of its respective two-dimensional image segment;

applying an adjustment vector to at least one of the first, second, third, and fourth latent space points, thereby adjusting at least one of the first, second, third, or fourth latent space points;

concatenating the first, second, third and fourth latent space points into a combined latent space vector, wherein at least one of the first, second, third, or fourth latent space points is an adjusted latent space point; and

decoding the combined latent space vector to generate the output image in accordance with a desired facial identity but with the facial expression and pose of the face in the two-dimensional input image.

14. The computer-implemented method of changing a face within an image or video frame set forth in claim 13 wherein the input image is normalized prior to the receiving step.

15. The computer-implemented method of changing a face within an image or video frame set forth in claim 14 wherein the input image is resized to a predetermined size prior to the receiving step.

16. The computer-implemented method of changing a face within an image or video frame set forth in claim 15 wherein each of the first, second, third and fourth image segments comprises a predetermined size.

17. A system for changing a face within an output image or video frame, the system comprising:

a memory storing a plurality of computer-readable instructions; and

one or more processors operable to execute the computer-readable instructions and cause the system to:

receive a two-dimensional input image that includes a face presenting a facial expression in a pose;

separately encode different portions of the two-dimensional input image by, for each separately encoded portion, generate a latent space point of the portion, thereby generating a plurality of multi-dimensional vectors where each multi-dimensional vector is an encoded representation of a different portion of the two-dimensional input image;

applying an adjustment vector to a multi-dimensional vector of the plurality of multi-dimensional vectors, thereby creating an adjusted vector;

concatenate the plurality of multi-dimensional vectors including the adjusted vector into a combined latent space vector; and

decode the combined latent space vector to generate the output image in accordance with a desired facial identity but with the facial expression and pose of the face in the two-dimensional input image.

18. The system set forth in claim 17 wherein the plurality of computer readable instructions further comprise instructions to cause the system to, after receiving the input image and prior to separately encoding the different portions of the image, identify different features within the image that correlate to the different portions of the image.

19. The system set forth in claim 18 wherein the plurality of computer readable instructions further comprise instructions to cause the system to, for each of the different features identified, extract, from the input image, an image segment that comprises the identified feature thereby generating a plurality of image segments.

20. The system set forth in claim 19 wherein the plurality of image segments includes: a first image segment that contains a portion of the input image with a left eye of the face, a second image segment that contains a portion of the input image with a right eye of the face, a third image segment that contains a portion of the input image with a mouth of the face, and a fourth image segment that contains a remaining portion of the input image not included in the first, second or third image segments.

21. The system set forth in claim 20 wherein each of the first, second, third and fourth image segments comprises a predetermined size.

22. The system set forth in claim 17 wherein the plurality of computer readable instructions further comprise instructions to cause the system to normalize and resize the input image prior to the receiving step.

Continuity (1)
Related Publication 20230319223A1 · Oct 5, 2023
References Cited (26)
US 10902571B2 · Naruniec et al. · 2021 [cited by applicant]
US 11222466B1 · Naruniec et al. · 2022 [cited by applicant]
US 11308657B1 · Berlin · 2022 [cited by examiner]
US 20170076142A1 · Chang · 2017 [cited by examiner]
US 20190251707A1 · Gupta · 2019 [cited by examiner]
US 20210142440A1 · Ahn · 2021 [cited by examiner]
US 20210192684A1 · Pardeshi · 2021 [cited by examiner]
US 20210295483A1 · Huang · 2021 [cited by examiner]
US 20210327038A1 · Helminger et al. · 2021 [cited by applicant]
US 20220036534A1 · Chakrabarty · 2022 [cited by examiner]
US 20220374649A1 · Naruniec et al. · 2022 [cited by applicant]
US 20220391611A1 · Kalarot · 2022 [cited by examiner]
US 20230049729A1 · Berlin · 2023 [cited by examiner]
US 20230086807A1 · Lukác · 2023 [cited by examiner]
US 20230162407A1 · Kalarot et al. · 2023 [cited by applicant]
CN 112766160 · 2021 [cited by examiner]
CN 113420703 · 2021 [cited by examiner]
CN 113592982 · 2021 [cited by examiner]
JP 2021000224 · 2021 [cited by examiner]
KR 20210033781 · 2021 [cited by examiner]
Sen-Zhe Xu, Hao-Zhi Huang, Shi-Min Hu, Wei Liu, “ FaceShapeGene: A Disentangled Shape Representation for Flexible Face Image Editing” (May 6, 2019), arXiv, Computer Vision and Pattern Recognition, https://doi.org/10.485… [cited by examiner]
Zeng, et al., “Facial Expression Transfer from Video via Deep Learning”, SCA '21: The ACM SIGGRAPH / Eurographics Symposium on Computer Animation, Sep. 6-9, 2021, 2 pages. [cited by applicant]
U.S. Appl. No. 17/707,782, “Non-Final Office Action”, Dec. 19, 2023, 19 pages. [cited by applicant]
U.S. Appl. No. 17/707,782, “Final Office Action”, Mar. 27, 2024, 22 pages. [cited by applicant]
U.S. Appl. No. 17/707,782, “Non-Final Office Action”, Jul. 24, 2024, 20 pages. [cited by applicant]
U.S. Appl. No. 17/707,782, “Notice of Allowance”, Dec. 11, 2024, 8 pages. [cited by applicant]