IP Library Granted Patent US 12,277,630
Granted Patent B2
US 12,277,630 · App. 17/662,560 · Granted Apr 15, 2025

Unsupervised style and color cues for transformer-based image generation

Inventors: Pranav Vineet Aggarwal (Santa Clara, CA); Midhun Harikumar (Sunnyvale, CA); Ajinkya Gorakhnath Kale (San Jose, CA)
Assignee: ADOBE INC.
G06T11/40G06N3/045G06N3/088G06T7/13G06T2207/20081G06T2207/20084
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,277,630
App. No.
17/662,560
Granted
Apr 15, 2025
Kind
B2
Abstract

Systems and methods for image processing are configured. Embodiments of the present disclosure identify target style attributes and target structure attributes for a composite image; generate a matrix of composite feature tokens based on the target style attributes and the target structure attributes, wherein subsequent feature tokens of the matrix of composite feature tokens are sequentially generated based on previous feature tokens of the matrix of composite feature tokens according to a linear ordering of the matrix of composite feature tokens; and generate the composite image based on the matrix of composite feature tokens, wherein the composite image includes the target style attributes and the target structure attributes.

Claims (64)

1. A method for image processing, comprising:

identifying target style attributes and target structure attributes for a composite image;

ordering structure feature tokens of a matrix of structure feature tokens to obtain a sequence of structure feature tokens;

combining the sequence of structure feature tokens with target style features to obtain a combined sequence of feature tokens;

generating a matrix of composite feature tokens based on the target style attributes, the target structure attributes, and the combined sequence of feature tokens, wherein the matrix of composite feature tokens comprises a two-dimensional arrangement of composite feature tokens having a plurality of rows and a plurality of columns, and wherein subsequent feature tokens of the matrix of composite feature tokens are autoregressively generated based on previous feature tokens of the matrix of composite feature tokens according to a linear ordering of the matrix of composite feature tokens; and

generating the composite image based on the matrix of composite feature tokens, wherein the composite image includes the target style attributes and the target structure attributes.

2. The method of claim 1 , further comprising:

generating the target style features and dispensable structure features based on a style image that includes at least a portion of the target style attributes, wherein the target style features represent the target style attributes.

3. The method of claim 2 , further comprising:

identifying an additional style image;

generating additional target style features based on the additional style image; and

combining the target style features and the additional target style features to obtain combined target style features, wherein the matrix of composite feature tokens is generated based on the combined target style features.

4. The method of claim 3 , further comprising:

identifying a spatial weighting for the style image and the additional style image, wherein the target style features and the additional target style features are combined based on the spatial weighting.

5. The method of claim 1 , further comprising:

selecting a color palette of a style image, wherein the color palette comprises color distribution information of the style image, and wherein the target style attributes include the color palette.

6. The method of claim 5 , further comprising:

receiving a grayscale image that includes the target structure attributes; and

generating a grayscale image embedding that represents the target structure attributes based on the grayscale image, wherein the matrix of composite feature tokens is generated based on the grayscale image embedding and the color palette.

7. The method of claim 1 , further comprising:

receiving a text query that specifies at least a portion of the target style attributes; and

generating a text embedding based on the text query, wherein the matrix of composite feature tokens is generated based on the text embedding.

8. The method of claim 1 , further comprising:

receiving a structure image that includes the target structure attributes;

generating a sketch image of the structure image based on an edge detection model, wherein the sketch image includes the target structure attributes; and

generating the matrix of structure feature tokens based on the sketch image.

9. The method of claim 1 , further comprising:

identifying a row of the matrix of composite feature tokens;

identifying a set of previous feature tokens in the row of the matrix of composite feature tokens; and

generating a next feature token in the row of the matrix of composite feature tokens based on the set of previous feature tokens in the row of the matrix of composite feature tokens.

10. The method of claim 9 , further comprising:

identifying a row of the matrix of structure feature tokens corresponding to the row of the matrix of composite feature tokens, wherein the next feature token is generated based on the row of the matrix of structure feature tokens.

11. The method of claim 9 , wherein:

the next feature token in the row of the matrix of composite feature tokens is generated independently of a previous row in the matrix of composite feature tokens.

12. The method of claim 1 , wherein:

each composite feature token of the matrix of composite feature tokens represents a vector from a vector quantized generative adversarial network (VQGAN) codebook.

13. The method of claim 1 , wherein:

the target style attributes include color information, texture information, lighting information, high frequency information, or any combination thereof.

14. A method for training a machine learning model, comprising:

generating style features of an image using a swapping autoencoder (SAE) model;

generating a sketch image from the image using an edge detection model;

generating a matrix of structure feature tokens based on the sketch image using a sketch encoder;

ordering structure feature tokens of the matrix of structure feature tokens to obtain a sequence of structure feature tokens;

combining the sequence of structure feature tokens with the style features to obtain a combined sequence of feature tokens;

generating, using a transformer model, a matrix of composite feature tokens based on the style features of the image, the matrix of structure feature tokens, and the combined sequence of feature tokens, wherein the matrix of composite feature tokens comprises a two-dimensional arrangement of composite feature tokens having a plurality of rows and a plurality of columns, and wherein subsequent feature tokens of the matrix of composite feature tokens are autoregressively generated based on previous feature tokens of the matrix of composite feature tokens according to a linear ordering of the matrix of composite feature tokens;

generating a matrix of supervision tokens for the image using an image encoder;

computing a classification loss based on the matrix of composite feature tokens and the matrix of supervision tokens, wherein each supervision token of the matrix of supervision tokens is selected from a pre-determined collection of tokens; and

updating parameters of the transformer model based on the classification loss.

15. The method of claim 14 , further comprising:

training the image encoder using an image training set based on a vector quantized generative adversarial network (VQGAN) training method; and

training the sketch encoder using a sketch training set based on a VQGAN training method.

16. The method of claim 14 , further comprising:

training the SAE model by swapping structure attributes and style attributes of a first training image and a second training image.

17. An apparatus for image processing, comprising:

at least one processor;

at least one memory including instructions executable by the at least one processor;

a swapping autoencoder (SAE) model comprising parameters stored in the at least one memory and configured to generate target style features based on a style image, wherein the target style features represent target style attributes for a composite image;

a sketch encoder comprising code stored in the at least one memory and configured to generate a matrix of structure feature tokens based on a sketch image, wherein the matrix of structure feature tokens represents target structure attributes of the sketch image;

a transformer model comprising parameters stored in the at least one memory and trained to order structure feature tokens of the matrix of structure feature tokens to obtain a sequence of structure feature tokens, combine the sequence of structure feature tokens with the target style features to obtain a combined sequence of feature tokens, and generate a matrix of composite feature tokens based on the target style features, the matrix of structure feature tokens, and the combined sequence of feature tokens, wherein the matrix of composite feature tokens comprises a two-dimensional arrangement of composite feature tokens having a plurality of rows and a plurality of columns, and wherein subsequent feature tokens of the matrix of composite feature tokens are autoregressively generated based on previous feature tokens of the matrix of composite feature tokens according to a linear ordering of the matrix of composite feature tokens; and

an image generator comprising parameters stored in the at least one memory and configured to generate the composite image based on the matrix of composite feature tokens, wherein the composite image includes the target style attributes and the target structure attributes.

18. The apparatus of claim 17 , wherein:

the sketch encoder comprises a vector quantized generative adversarial network (VQGAN) encoder and the image generator comprises a VQGAN decoder.

19. The apparatus of claim 17 , further comprising:

a multi-modal encoder configured to generate a text embedding representing additional target style attributes, wherein the matrix of composite feature tokens is generated based on the text embedding.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 9, 2022
From: AGGARWAL, PRANAV VINEET; HARIKUMAR, MIDHUN; KALE, AJINKYA GORAKHNATH
To: ADOBE INC.
Reel/Frame 059873/0250 →
Continuity (1)
Related Publication 20230360294A1 · Nov 9, 2023
References Cited (42)
US 10410351B2 · Lin · 2019 [cited by examiner]
US 10734024B1 · Soni · 2020 [cited by examiner]
US 11216505B2 · Motiian et al. · 2022 [cited by applicant]
US 11656851B2 · Clement · 2023 [cited by examiner]
US 20120092359A1 · O'Brien-Strain · 2012 [cited by examiner]
US 20140270489A1 · Lim · 2014 [cited by examiner]
US 20150297949A1 · Aman · 2015 [cited by examiner]
US 20170011010A1 · Eom · 2017 [cited by examiner]
US 20180357259A1 · Jin · 2018 [cited by examiner]
US 20180357519A1 · Jin · 2018 [cited by examiner]
US 20190026870A1 · Hu · 2019 [cited by examiner]
US 20200294294A1 · Petriv · 2020 [cited by examiner]
US 20210012102A1 · Cristescu · 2021 [cited by examiner]
US 20210077063A1 · Swisher · 2021 [cited by examiner]
US 20210142208A1 · Osogami · 2021 [cited by examiner]
US 20210174128A1 · Charnock · 2021 [cited by examiner]
US 20210264655A1 · Chen · 2021 [cited by examiner]
US 20210334908A1 · Shu · 2021 [cited by examiner]
US 20210358164A1 · Liu · 2021 [cited by examiner]
US 20210382936A1 · Tomar · 2021 [cited by examiner]
US 20210383095A1 · Maurer · 2021 [cited by examiner]
US 20210383589A1 · Risser · 2021 [cited by examiner]
US 20220012596A1 · Nie · 2022 [cited by examiner]
US 20220084165A1 · Hsiao · 2022 [cited by examiner]
US 20220138432A1 · Galitsky · 2022 [cited by examiner]
US 20220165373A1 · Kim · 2022 [cited by examiner]
US 20220214863A1 · Clement · 2022 [cited by examiner]
US 20220229980A1 · Jin · 2022 [cited by examiner]
US 20220334258A1 · Kim · 2022 [cited by examiner]
US 20220374709A1 · Kim · 2022 [cited by examiner]
US 20230045076A1 · Huang · 2023 [cited by examiner]
US 20230068103A1 · Zhou · 2023 [cited by examiner]
US 20230128200A1 · Clement · 2023 [cited by examiner]
US 20230168146A1 · Good · 2023 [cited by examiner]
US 20230245363A1 · Park · 2023 [cited by examiner]
US 20230274420A1 · Seah · 2023 [cited by examiner]
US 20230351558A1 · Chen · 2023 [cited by examiner]
US 20230360294A1 · Aggarwal · 2023 [cited by examiner]
US 20230419551A1 · Harikumar · 2023 [cited by examiner]
1Park, et al., “Swapping Autoencoder for Deep Image Manipulation”, In Advances in Neural Information Processing Systems, 2020, 14 pages. [cited by applicant]
2Esser, et al., “Taming Transformers for High-Resolution Image Synthesis”, In Proceedings of the IEEE Computer Vision Foundation, (2020), pp. 12873-12883. [cited by applicant]
3Radford, et al., “Learning Transferable Visual Models From Natural Language Supervision”, In Proceedings of the 38th International Conference on Machine Learning, PMLR 139, 2021, 16 pages. [cited by applicant]
Cited By (1)
US 12,488,430