# US 2022/0292650 A1 · Generating modified digital images using deep visual guided patch match models for image inpainting

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

- Number: US 2022/0292650 A1
- Document ID: US20220292650A1
- Status: Published application
- Kind: A1
- Application number: 17/202,019
- Filed: 2021-03-15
- Published: 2022-09-15
- Earliest claimed: 2021-03-15
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Sohrab Amirghodsi; Lingzhi Zhang; Zhe Lin; Connelly Barnes; Elya Shechtman
- Web page: https://patentgrep.com/patent/US20220292650A1

## CPC

- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06N 3/045: Combinations of networks
- G06N 3/0455: Auto-encoder networks; Encoder-decoder networks
- G06N 3/0464: Convolutional networks [CNN, ConvNet]
- G06N 3/0475: Generative networks
- G06N 3/08: Learning methods
- G06N 3/09: Supervised learning
- G06N 3/094: Adversarial learning
- G06N 3/096: Transfer learning
- G06T 3/4053: based on super-resolution, i.e. the output image resolution being higher than the sensor resolution
- G06T 5/60: using machine learning, e.g. neural networks
- G06T 7/11: Region-based segmentation
- G06T 7/50: Depth or shape recovery
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- 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 modified digital images utilizing a guided inpainting approach that implements a patch match model informed by a deep visual guide. In particular, the disclosed systems can utilize a visual guide algorithm to automatically generate guidance maps to help identify replacement pixels for inpainting regions of digital images utilizing a patch match model. For example, the disclosed systems can generate guidance maps in the form of structure maps, depth maps, or segmentation maps that respectively indicate the structure, depth, or segmentation of different portions of digital images. Additionally, the disclosed systems can implement a patch match model to identify replacement pixels for filling regions of digital images according to the structure, depth, and/or segmentation of the digital images.

## Claims

### Claim 1

A non-transitory computer readable medium comprising instructions that, when executed by at least one processor, cause a computing device to replace pixels within a region of a digital image to generate a modified digital image by:
generating an inpainted digital image from the digital image utilizing an inpainting neural network, the inpainted digital image comprising an initial set of replacement pixels for the region;
generating a deep visual guide from the inpainted digital image utilizing a visual guide algorithm;
identifying replacement pixels from the digital image for the region of the digital image utilizing a patch match model and the deep visual guide; and
generating the modified digital image by replacing the region of the digital image with the replacement pixels.

### Claim 2 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein generating the deep visual guide comprises generating a deep visual guide image that indicates one or more of a structure, a depth, or a semantic segmentation within the region of the digital image.

### Claim 3 (depends on 2)

The non-transitory computer readable medium of claim 2, wherein identifying the replacement pixels comprises utilizing the patch match model to identify pixels within the digital image that correspond to the structure, the depth, or the semantic segmentation within the region of the digital image as indicated by the deep visual guide.

### Claim 4 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein generating the deep visual guide comprises utilizing the visual guide algorithm comprising a structure image model to generate a structure image guide from the inpainted digital image for identifying the replacement pixels from one or more structures identified within the inpainted digital image.

### Claim 5 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein generating the deep visual guide comprises utilizing the visual guide algorithm comprising an image depth neural network to generate an image depth guide from the inpainted digital image for identifying the replacement pixels from a depth map of the inpainted digital image.

### Claim 6 (depends on 1)

The non-transitory computer readable medium of claim 1, wherein generating the deep visual guide comprises utilizing the visual guide algorithm comprising a segmentation image neural network to generate a segmentation image guide from the inpainted digital image for identifying the replacement pixels from semantic segmentations of the inpainted digital image.

### Claim 7 (depends on 1)

The non-transitory computer readable medium of claim 1, further comprising instructions that, when executed by the at least one processor, cause the computing device to utilize a cost function of the patch model to identify the replacement pixels from the digital image and the deep visual guide.

### Claim 8 (depends on 7)

The non-transitory computer readable medium of claim 7, wherein identifying the replacement pixels from the digital image comprises utilizing the cost function to identify the replacement pixels according to a weighted combination of a structure image guide, an image depth guide, and a segmentation image guide.

### Claim 9

A system comprising:
one or more memory devices comprising:
an inpainting neural network; a visual guide algorithm comprising at least one of a structure image model, an image depth neural network, or a segmentation image neural network; a patch match model; and a digital image comprising a region of pixels to replace; and
one or more computing devices that are configured to cause the system to:
generate an inpainted digital image from the digital image utilizing the inpainting neural network, the inpainted digital image comprising an initial set of replacement pixels for the region;
generate a deep visual guide comprising at least one of a structure image guide, an image depth guide, or a segmentation image guide from the inpainted digital image utilizing the visual guide algorithm; and
identify replacement pixels from the digital image for the region from the deep visual guide utilizing the patch match model.

### Claim 10 (depends on 9)

The system of claim 9, wherein the one or more computing devices are further configured to cause the system to identify the replacement pixels from the digital image by utilizing the patch match model to identify one or more of:
pixels of the digital image belonging to a structure of the region of pixels utilizing the structure image guide;
pixels of the digital image with depths corresponding to a depth of the region of pixels utilizing the image depth guide; or
pixels of the digital image belonging to a segment of the region of pixels utilizing the segmentation image guide.

### Claim 11 (depends on 9)

The system of claim 9, wherein the one or more computing devices are further configured to cause the system to generate a modified digital image by replacing the region of the digital image with the replacement pixels, wherein the modified digital image has a higher resolution than the inpainted digital image.

### Claim 12 (depends on 9)

The system of claim 9, wherein the one or more computing devices are further configured to cause the system to identify the replacement pixels from the digital image in accordance with a cost function of the patch match model that utilizes the deep visual guide.

### Claim 13 (depends on 12)

The system of claim 12, wherein the one or more computing devices are further configured to cause the system to utilize the cost function to combine the deep visual guide and an additional deep visual guide by assigning weights to two or more of the structure image guide, the image depth guide, or the segmentation guide.

### Claim 14 (depends on 9)

The system of claim 9, wherein the one or more computing devices are further configured to cause the system to generate the structure image guide as the deep visual guide utilizing the structure image model to determine edges between different structural components of the inpainted digital image.

### Claim 15 (depends on 13)

The system of claim 13, wherein the one or more computing devices are further configured to cause the system to:
generate a binary mask indicating the region of the digital image; and
generate the deep visual guide by utilizing a generator neural network to predict a structure within the region of the digital image based on the binary mask.

### Claim 16

A computer-implemented method for replacing regions of pixels within digital images utilizing deep visual guides together with patch match models, the computer-implemented method comprising:
receiving a digital image comprising a region of pixels to replace;
generating a deep visual guide comprising at least one of a structure image guide, an image depth guide, or a segmentation image guide from the digital image utilizing a visual guide algorithm;
identifying replacement pixels for the region of the digital image utilizing a patch match model and the deep visual guide; and
generating a modified digital image by replacing the region of the digital image with the replacement pixels.

### Claim 17 (depends on 16)

The computer-implemented method of claim 16, wherein generating the deep visual guide comprises:
generating an intermediate digital image indicating a structure for a portion of the digital image outside the region; and
generating a binary mask indicating the region of the digital image.

### Claim 18 (depends on 17)

The computer-implemented method of claim 17, wherein generating the deep visual guide comprises utilizing a generator neural network to predict a structure within the region of the digital image from the digital image, the intermediate digital image, and the binary mask.

### Claim 19 (depends on 16)

The computer-implemented method of claim 16, wherein generating the deep visual guide comprises utilizing a student neural network to predict one or more of a depth or a segmentation within the region of the digital image according to parameters learned from a teacher neural network.

### Claim 20 (depends on 19)

The computer-implemented method of claim 19, further comprising learning the parameters for the student neural network by:
determining teacher labels for one or more of depths or segmentations for a full digital image utilizing the teacher neural network;
generating an incomplete digital image comprising a hole region from the full digital image;
generating predicted labels for one or more of the depths or the segmentations for the incomplete digital image utilizing the student neural network; and
modifying parameters of the student neural network by comparing the predicted labels with the teacher labels.
