# US 2025/0054116 A1 · Digital image inpainting utilizing global and local modulation layers of an inpainting neural network

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

- Number: US 2025/0054116 A1
- Document ID: US20250054116A1
- Status: Published application
- Kind: A1
- Application number: 18/929,330
- Filed: 2024-10-28
- Published: 2025-02-13
- Earliest claimed: 2022-05-04
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Haitian Zheng; Zhe Lin; Jingwan Lu; Scott Cohen; Elya Shechtman; Connelly Barnes; Jianming Zhang; Ning Xu; Sohrab Amirghodsi
- Web page: https://patentgrep.com/patent/US20250054116A1

## CPC

- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06V 10/82: using neural networks
- G06T 3/4046: using neural networks
- G06T 5/60: using machine learning, e.g. neural networks
- G06V 10/40: Extraction of image or video features
- G06V 10/454: {Integrating the filters into a hierarchical structure, e.g. convolutional neural networks [CNN]}
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The present disclosure relates to systems, methods, and non-transitory computer readable media that generate inpainted digital images utilizing a cascaded modulation inpainting neural network. For example, the disclosed systems utilize a cascaded modulation inpainting neural network that includes cascaded modulation decoder layers. For example, in one or more decoder layers, the disclosed systems start with global code modulation that captures the global-range image structures followed by an additional modulation that refines the global predictions. Accordingly, in one or more implementations, the image inpainting system provides a mechanism to correct distorted local details. Furthermore, in one or more implementations, the image inpainting system leverages fast Fourier convolutions block within different resolution layers of the encoder architecture to expand the receptive field of the encoder and to allow the network encoder to better capture global structure.

## Claims

### Claim 1

A computer-implemented method comprising:
extracting, from a digital image comprising a replacement region, an image feature vector utilizing an encoder of an inpainting neural network;
generating a first local feature map from the image feature vector utilizing a first spatial modulation block of a first modulation layer of a decoder of the inpainting neural network;
generating a second local feature map from the first local feature map utilizing a second spatial modulation block of a second modulation layer of the decoder; and
generating an inpainted digital image by generating replacement pixels for the replacement region from the second local feature map utilizing additional modulation layers of the decoder.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein generating the first local feature map comprises applying a spatially-varying affine transformation that varies across spatial coordinates to generate the first local feature map.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein determining the image feature vector comprises utilizing a Fourier convolution encoder layer of the encoder to generate the image feature vector.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, further comprising generating the second local feature map utilizing the second spatial modulation block of the second modulation layer of the decoder from the first local feature map and the image feature vector.

### Claim 5 (depends on 1)

The computer-implemented method of claim 1, further comprising generating a first additional feature map from the image feature vector utilizing a first additional modulation block of the first modulation layer of the decoder of the inpainting neural network.

### Claim 6 (depends on 5)

The computer-implemented method of claim 5, further comprising generating a second additional feature map from first additional feature map utilizing a second additional modulation block of the second modulation layer of the decoder of the inpainting neural network.

### Claim 7 (depends on 6)

The computer-implemented method of claim 6, further comprising generating the inpainted digital image by generating replacement pixels for the replacement region from the second local feature map and the second additional feature map utilizing additional modulation layers of the decoder.

### Claim 8

A system comprising:
one or more memory devices; and
one or more processors configured to cause the system to:
extracting, from a digital image comprising a replacement region, an image feature vector utilizing an encoder of a cascaded modulation inpainting neural network;
generate a first feature map from the image feature vector of the digital image utilizing a first modulation block of a first cascaded modulation layer of a decoder of the cascaded modulation inpainting neural network;
generate a second feature map from the first feature map utilizing a second modulation block of the first cascaded modulation layer of the decoder; and
generate an inpainted digital image by determining replacement pixels for the replacement region utilizing additional cascaded modulation layers of the decoder from the first feature map and second feature map.

### Claim 9 (depends on 8)

The system of claim 8, wherein the one or more processors are further configured to cause the system to generate the first feature map from the image feature vector by generating a global feature map utilizing a global modulation block of the first cascaded modulation layer of the decoder of the cascaded modulation inpainting neural network.

### Claim 10 (depends on 9)

The system of claim 9, wherein the one or more processors are further configured to cause the system to generate the second feature map by generating an additional global feature map utilizing an additional global modulation block of the first cascaded modulation layer of the decoder of the cascaded modulation inpainting neural network.

### Claim 11 (depends on 8)

The system of claim 8, wherein the one or more processors are further configured to cause the system to generate the second feature map by generating a local feature map utilizing a spatial modulation block of the first cascaded modulation layer of the decoder of the cascaded modulation inpainting neural network.

### Claim 12 (depends on 11)

The system of claim 11, wherein the one or more processors are further configured to cause the system to generate the local feature map utilizing a spatial modulation block by applying a spatially-varying transformation that varies across spatial coordinates.

### Claim 13 (depends on 8)

The system of claim 8, wherein the one or more processors are further configured to cause the system to generate the inpainted digital image by:
generating a first additional feature map from the first feature map utilizing a first additional modulation block of a second cascaded modulation layer of the decoder of the cascaded modulation inpainting neural network; and
generating a second additional feature map from the second feature map utilizing a second additional modulation block of the second cascaded modulation layer of the decoder.

### Claim 14 (depends on 8)

The system of claim 8, wherein the one or more processors are further configured to cause the system to determine the image feature vector by utilizing a Fourier convolution encoder layer of the encoder.

### Claim 15

A non-transitory computer readable medium storing executable instructions which, when executed by a processing device, cause the processing device to perform operations comprising:
receiving, based on user interaction at a client device, a digital image comprising a replacement region;
generating a first local feature map from the digital image utilizing a first spatial modulation block of a first modulation layer of a decoder of an inpainting neural network;
generating a second local feature map from the first local feature map utilizing a second spatial modulation block of a second modulation layer of the decoder;
generating an inpainted digital image by generating replacement pixels for the replacement region from the second local feature map utilizing additional modulation layers of the decoder; and
providing, for display via the client device, the inpainted digital image comprising the replacement pixels.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the operations further comprise:
generating, from the digital image, an image feature vector utilizing an encoder of the inpainting neural network; and
generating the first local feature map from the image feature vector.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, wherein generating the image feature vector comprises utilizing a Fourier convolution encoder layer of the encoder to generate the image feature vector.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein generating the first local feature map comprises applying a spatially-varying transformation that varies across spatial coordinates.

### Claim 19 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the operations further comprise:
generating a first additional feature map from the digital image utilizing a first additional modulation block of the first modulation layer of the decoder of the inpainting neural network; and
generating a second additional feature map from first additional feature map utilizing a second additional modulation block of the second modulation layer of the decoder of the inpainting neural network.

### Claim 20 (depends on 19)

The non-transitory computer readable medium of claim 19, wherein the operations further comprise generating the inpainted digital image by generating replacement pixels for the replacement region from the second local feature map and the second additional feature map utilizing additional modulation layers of the decoder.
