# US 2022/0292654 A1 · Generating deep harmonized digital images

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0292654 A1
- Document ID: US20220292654A1
- Status: Published application
- Kind: A1
- Application number: 17/200,338
- Filed: 2021-03-12
- Published: 2022-09-15
- Earliest claimed: 2021-03-12
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: He Zhang; Yifan Jiang; Yilin Wang; Jianming Zhang; Kalyan Sunkavalli; Sarah Kong; Su Chen; Sohrab Amirghodsi; Zhe Lin
- Web page: https://patentgrep.com/patent/US20220292654A1

## CPC

- G06T 11/60: Creating or editing images; Combining images with text
- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/08: Learning methods
- G06N 3/0895: Weakly supervised learning, e.g. semi-supervised or self-supervised learning
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 7/194: involving foreground-background segmentation
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20092: Interactive image processing based on input by user
- G06T 2207/20132: Image cropping
- G06T 2207/20212: Image combination
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

The present disclosure relates to systems, methods, and non-transitory computer readable media for accurately, efficiently, and flexibly generating harmonized digital images utilizing a self-supervised image harmonization neural network. In particular, the disclosed systems can implement, and learn parameters for, a self-supervised image harmonization neural network to extract content from one digital image (disentangled from its appearance) and appearance from another from another digital image (disentangled from its content). For example, the disclosed systems can utilize a dual data augmentation method to generate diverse triplets for parameter learning (including input digital images, reference digital images, and pseudo ground truth digital images), via cropping a digital image with perturbations using three-dimensional color lookup tables (“LUTs”). Additionally, the disclosed systems can utilize the self-supervised image harmonization neural network to generate harmonized digital images that depict content from one digital image having the appearance of another digital image.

## Claims

### Claim 1

A computer-implemented method for learning parameters of a self-supervised image harmonization neural network, the computer-implemented method comprising:
generating, from a digital image, a plurality of digital image crops utilizing dual data augmentation to augment one or more of content or appearance of the plurality of digital image crops;
selecting, from among the plurality of digital image crops, pairs of digital image crops comprising content crops and appearance crops;
learning, from the pairs of digital image crops, parameters for a neural network appearance encoder that disentangles appearance from content; and
learning, from the pairs of digital image crops, parameters for a neural network content encoder that disentangles content from appearance.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein generating the plurality of digital image crops comprises utilizing the dual data augmentation to:
generate, from the digital image, a first digital image crop and a second digital image crop, the second digital image crop depicting one or more different pixels than the first digital image crop;
augment an appearance of the first digital image crop by modifying one or more appearance characteristics of the first digital image crop; and
augment an appearance of the second digital image crop by modifying one or more appearance characteristics of the second digital image crop differently from the appearance characteristics of the first digital image crop.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein generating the plurality of digital image crops comprises utilizing the dual data augmentation to:
generate, from the digital image, a first appearance-augmented digital image by performing a first modification to one or more appearance characteristics of the digital image;
generate, from the digital image, a second appearance-augmented digital image different from the first appearance-augmented digital image by performing a second modification to one or more appearance characteristics of the digital image; and
crop the first appearance-augmented digital image and the second appearance-augmented digital image such that the first appearance-augmented digital image and the second appearance-augmented digital image depict at least some overlapping portion.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein selecting the pairs of digital image crops comprises:
selecting, from among the plurality of digital image crops, a content crop comprising a cropped portion of the digital image for input into the neural network content encoder; and
selecting, from among the plurality of digital image crops, an appearance crop comprising an appearance-augmented portion of the digital image for input into the neural network appearance encoder.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising:
extracting a content code from a content crop of the plurality of digital image crops utilizing the neural network content encoder;
extracting an appearance code from an appearance crop of the plurality of digital image crops utilizing the neural network appearance encoder; and
generating a modified digital image from the content crop and the appearance crop by combining the content code and the appearance code utilizing a neural network decoder.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, wherein learning the parameters for the neural network appearance encoder comprises:
generating, by cropping and augmenting an appearance of a portion of the digital image, a pseudo ground truth crop comprising a content corresponding to the content code of the modified digital image and an appearance corresponding to the appearance code of the modified digital image;
comparing the modified digital image with the pseudo ground truth crop utilizing a harmonization loss function; and
modifying the parameters for the neural network appearance encoder to reduce a measure of loss associated with the harmonization loss function.

### Claim 7 (depends on 5)

The computer-implemented method of claim 5, wherein learning the parameters for the neural network content encoder comprises:
generating, by cropping and augmenting an appearance of a portion of the digital image, a pseudo ground truth crop comprising a content corresponding to the content code of the modified digital image and an appearance corresponding to the appearance code of the modified digital image;
comparing the modified digital image with the pseudo ground truth crop utilizing a reconstruction loss function; and
modifying the parameters for the neural network content encoder to reduce a measure of loss associated with the reconstruction loss function.

### Claim 8 (depends on 1)

The computer-implemented method of claim 1, wherein generating the plurality of digital image crops comprises utilizing the dual data augmentation to augment appearance utilizing a three-dimensional lookup table to modify colors of the digital image.

### Claim 9

A system comprising:
one or more memory devices comprising a self-supervised image harmonization neural network comprising:
a neural network appearance encoder that extracts an appearance code disentangled from a content of a first digital image, the appearance code representing one or more appearance characteristics of the first digital image;
a neural network content encoder that extracts a content code disentangled from an appearance of a second digital image, the content code representing a geometric layout of the second digital image; and
a neural network decoder that generates a modified digital image from the appearance code and the content code.

### Claim 10 (depends on 9)

The system of claim 9, further comprising one or more computing devices that are configured to cause the system to extract the appearance code from the first digital image by utilizing the neural network appearance encoder to extract features representing one or more of color, contrast, brightness, or saturation of the first digital image.

### Claim 11 (depends on 9)

The system of claim 9, further comprising one or more computing devices that are configured to cause the system to extract the content code from the second digital image by utilizing the neural network content encoder to extract features representing a geometric layout of the second digital image.

### Claim 12 (depends on 9)

The system of claim 9, further comprising one or more computing devices that are configured to cause the system to generate a harmonized digital image by combining a portion of the modified digital image with the first digital image such that the portion of the modified digital image comprises a foreground of the harmonized digital image and the first digital image comprises a background of the harmonized digital image.

### Claim 13 (depends on 12)

The system of claim 12, wherein the one or more computing devices are further configured to generate the harmonized digital image by:
receiving an indication of user interaction to generate a mask defining the portion of the modified digital image to combine with the first digital image;
selecting the portion of the modified digital image indicated by the mask; and
combining the portion of the modified digital image with the first digital image utilizing a fitting function to adapt resolutions.

### Claim 14 (depends on 9)

The system of claim 9, further comprising one or more computing devices that are configured to cause the system to receive an indication of user interaction selecting the first digital image and the second digital image to combine together to generate the modified digital image.

### Claim 15

A non-transitory computer readable medium comprising instructions that, when executed by at least one processor, cause a computing device to:
extract, from a reference digital image, an appearance code disentangled from a content of the reference digital image utilizing a neural network appearance encoder;
extract, from an input digital image, a content code disentangled from an appearance of the input digital image utilizing a neural network content encoder;
generate a modified input digital image from the appearance code and the content code utilizing a neural network decoder, the modified input digital image comprising the appearance of the reference digital image and the content of the input digital image; and
generate a harmonized digital image by combining a portion of the modified digital image with the reference digital image.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, further comprising instructions that, when executed by the at least one processor, cause the computing device to generate the harmonized digital image by utilizing a fitting function learned from low-resolution digital images to combine the portion of the modified digital image with the reference digital image in a high resolution.

### Claim 17 (depends on 15)

The non-transitory computer readable medium of claim 15, further comprising instructions that, when executed by the at least one processor, cause the computing device to generate the harmonized digital image by receiving a mask indicating the portion of the modified digital image to combine with the reference digital image.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, further comprising instructions that, when executed by the at least one processor, cause the computing device to generate the harmonized digital image in response to receiving indications of user selections of the reference digital image and the input digital image to combine together.

### Claim 19 (depends on 15)

The non-transitory computer readable medium of claim 15, further comprising instructions that, when executed by the at least one processor, cause the computing device to extract the content code by utilizing the neural network content encoder to extract features representing a geometric layout of the input digital image.

### Claim 20 (depends on 15)

The non-transitory computer readable medium of claim 15, further comprising instructions that, when executed by the at least one processor, cause the computing device to extract the appearance code by utilizing the neural network appearance encoder to extract features representing color of the reference digital image without representing texture.
