# US 2023/0055204 A1 · Generating colorized digital images utilizing a re-colorization neural network with local hints

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

- Number: US 2023/0055204 A1
- Document ID: US20230055204A1
- Status: Published application
- Kind: A1
- Application number: 17/405,207
- Filed: 2021-08-18
- Published: 2023-02-23
- Earliest claimed: 2021-08-18
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Adrian-Stefan Ungureanu; Ionut Mironica; Richard Zhang
- Web page: https://patentgrep.com/patent/US20230055204A1

## CPC

- G06T 11/00: Two-dimensional [2D] image generation
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- 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/0475: Generative networks
- G06N 3/094: Adversarial learning
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

This disclosure describes methods, non-transitory computer readable storage media, and systems that utilize one or more stages of a two-stage image colorization neural network to colorize or re-colorize digital images. In one or more embodiments, the disclosed system generates a color digital image from a grayscale digital image by utilizing a colorization neural network. Additionally, the disclosed system receives one or more inputs indicating local hints comprising one or more color selections to apply to one or more objects of the color digital image. The disclosed system then utilizes a re-colorization neural network to generate a modified digital image from the color digital image by modifying one or more colors of the object(s) based on the luminance channel, color channels, and selected color(s).

## Claims

### Claim 1

A non-transitory computer readable storage medium comprising instructions that, when executed by at least one processor, cause a computing device to:
generate, utilizing an image colorization neural network, a first modified digital image comprising chrominance values from a digital image by generating a plurality of predicted pixel values colorizing a plurality of grayscale pixels in the digital image based on a luminance channel of the digital image;
determine one or more selected locations within one or more regions of the first modified digital image based on one or more user inputs comprising one or more selected colors associated with the one or more selected locations; and
generate, utilizing an image re-colorization neural network, a second modified digital image from the first modified digital image by:
determining the one or more regions of the first modified digital image based on the one or more selected locations; and
modifying one or more colors corresponding to the one or more regions of the first modified digital image according to the one or more selected colors.

### Claim 2 (depends on 1)

The non-transitory computer readable storage medium as recited in claim 1, further comprising instructions that, when executed by the at least one processor, cause the computing device to determine the one or more selected locations within the one or more regions of the first modified digital image by:
determining a plurality of pixel locations of a plurality of separate graphical indicators within a plurality of different objects of the digital image; and
determining a plurality of color values corresponding to the plurality of separate graphical indicators.

### Claim 3 (depends on 2)

The non-transitory computer readable storage medium as recited in claim 2, further comprising instructions that, when executed by the at least one processor, cause the computing device to generate the second modified digital image from the first modified digital image by modifying colors of the plurality of different objects of the digital image based on the plurality of color values corresponding to the plurality of separate graphical indicators according to the plurality of pixel locations of the plurality of separate graphical indicators.

### Claim 4 (depends on 1)

The non-transitory computer readable storage medium as recited in claim 1, further comprising instructions that, when executed by the at least one processor, cause the computing device to:
generate a colorized digital image based on a ground truth digital image comprising a plurality of regions;
determine a loss based on differences between the colorized digital image and the ground truth digital image according to a plurality of sampled local hints corresponding to locations of the ground truth digital image; and
update parameters of the image re-colorization neural network based on the loss.

### Claim 5

A system comprising:
one or more memory devices comprising a two-stage image colorization neural network, the two-stage image colorization neural network comprises an image colorization neural network and an image re-colorization neural network; and
one or more processors configured to cause the system to:
generate, utilizing the image colorization neural network, a first modified digital image from a digital image by colorizing the digital image based on a luminance channel of the digital image;
determine one or more selected locations within one or more regions of the first modified digital image based on one or more user inputs comprising one or more selected colors; and
generate, utilizing the image re-colorization neural network, a second modified digital image from the first modified digital image by modifying one or more colors corresponding to the one or more regions of the first modified digital image according to the one or more selected colors.

### Claim 6 (depends on 5)

The system as recited in claim 5, wherein the one or more processors are further configured to cause the system to generate the first modified digital image by:
generating, utilizing the colorization neural network, a plurality of predicted color values for a plurality of pixels in the digital image based on the luminance channel of the digital image;
modifying the plurality of pixels in the digital image based on the plurality of predicted color values; and
providing the plurality of predicted color values to the image re-colorization neural network.

### Claim 7 (depends on 5)

The system as recited in claim 5, wherein the one or more processors are further configured to cause the system to receive the one or more user inputs comprising the one or more selected colors by:
receiving a first user input comprising a first selected color within a first region of the first modified digital image; and
receiving a second user input comprising a second selected color within a second region of the first modified digital image, the first region being separated by at least one boundary from the second region.

### Claim 8 (depends on 7)

The system as recited in claim 7, wherein the one or more processors are further configured to cause the system to generate the second modified digital image by:
modifying, utilizing the image re-colorization neural network, a first color corresponding to the first region based on the first selected color; and
modifying, utilizing the image re-colorization neural network, a second color corresponding to the second region based on the second selected color.

### Claim 9 (depends on 8)

The system as recited in claim 8, wherein the one or more processors are further configured to cause the system to generate the second modified digital image by:
determining a third region separated by one or more boundaries from the first region and the second region; and
maintaining a color of the third region from the first modified digital image to the second modified digital image.

### Claim 10 (depends on 5)

The system as recited in claim 5, wherein the one or more processors are further configured to cause the system to update the image re-colorization neural network by:
generating a colorized digital image comprising modified colors from a ground truth digital image;
determining one or more regions of the colorized digital image based on a plurality of sampled locations from the ground truth digital image;
generating a blended digital image based comprising a portion of the ground truth digital image and a portion of the colorized digital image according to the one or more regions based on the plurality of sampled locations; and
updating parameters of the image re-colorization neural network based on the blended digital image.

### Claim 11 (depends on 10)

The system as recited in claim 10, wherein the one or more processors are further configured to cause the system to:
determine a local hints region loss based on a difference between the colorized digital image and a modified portion corresponding to a local hint indicating a selected location of the one or more selected locations; and
update the parameters of the image re-colorization neural network based further on the local hints region loss.

### Claim 12

A computer-implemented method comprising:
determining, by at least one processor, a luminance channel and color channels corresponding to a plurality of pixels of a color digital image;
receiving one or more user inputs comprising one or more color selections on one or more objects of the color digital image; and
generating, by the at least one processor utilizing an image re-colorization neural network, a modified digital image from the color digital image by modifying one or more colors corresponding to the one or more objects of the color digital image based on the luminance channel, the color channels, and the one or more color selections.

### Claim 13 (depends on 12)

The computer-implemented method as recited in claim 12, further comprising:
determining one or more pixel regions of the color digital image in response to the one or more user inputs; and
determining the one or more objects of the color digital image corresponding to the one or more pixel regions.

### Claim 14 (depends on 13)

The computer-implemented method as recited in claim 13, wherein generating the modified digital image comprises:
generating, from the one or more user inputs, a binary mask indicating the one or more pixel regions of the color digital image; and
generating the modified digital image based on the binary mask and the one or more color selections via the image re-colorization neural network.

### Claim 15 (depends on 12)

The computer-implemented method as recited in claim 12, wherein generating the modified digital image comprises:
determining one or more unselected regions of the color digital image according to the one or more user inputs; and
maintaining one or more colors in the one or more unselected regions based on the color channels.

### Claim 16 (depends on 12)

The computer-implemented method as recited in claim 12, further comprising augmenting a dataset of digital images by:
generating a colorized digital image comprising modified digital colors from a ground truth digital image utilizing an additional re-colorization neural network;
sampling a plurality of local hints at a plurality of locations from the ground truth digital image;
determining a first set of one or more regions of the colorized digital image comprising overlapping local hints and a second set of one or more regions of the colorized digital image without overlapping local hints; and
generating a blended digital image comprising first colors for the first set of one or more regions from the ground truth digital image and second colors for the second set of one or more regions from the modified digital image.

### Claim 17 (depends on 16)

The computer-implemented method as recited in claim 16, further comprising:
generating a mask for a local hint of the plurality of local hints based on a thresholded difference between the colorized digital image and a modified portion corresponding to the local hint;
determining a local hints region loss based on the modified portion corresponding to the local hint, a color value associated with the local hint, and the mask; and
updating parameters of the image re-colorization neural network based on the local hints region loss.

### Claim 18 (depends on 12)

The computer-implemented method as recited in claim 12, further comprising generating, utilizing an additional re-colorization neural network, the color digital image by colorizing a grayscale digital image based on a luminance channel of the grayscale digital image.

### Claim 19 (depends on 18)

The computer-implemented method as recited in claim 18, wherein generating the modified digital image comprises:
determining the luminance channel of the color digital image based on the grayscale digital image; and
determining the color channels based on predicted color values for the grayscale digital image utilizing the additional re-colorization neural network.

### Claim 20 (depends on 12)

The computer-implemented method as recited in claim 12, wherein:
receiving the one or more user inputs comprises receiving a first local hint corresponding to one or more pixels in a first region and a second local hint corresponding to one or more pixels in a second region; and
generating the modified digital image comprises modifying the first region based on a first color associated with the first local hint and the second region based on a second color associated with the second local hint.
