# US 2025/0384601 A1 · Editing digital images based on masks

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

- Number: US 2025/0384601 A1
- Document ID: US20250384601A1
- Status: Published application
- Kind: A1
- Application number: 18/745,325
- Filed: 2024-06-17
- Published: 2025-12-18
- Earliest claimed: 2024-06-17
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Handong Zhao; Zijun Wei; Trung Huu Bui; Jing Shi; Chongyang Gao
- Web page: https://patentgrep.com/patent/US20250384601A1

## CPC

- G06T 11/60: Creating or editing images; Combining images with text
- G06T 11/10: Texturing; Colouring; Generation of textures or colours (retouching, inpainting or scratch removal G06T5/77)
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

In implementation of techniques for editing digital images based on masks, a computing device implements an image combination system to receive a first digital image, a second digital image, a prompt describing an edit to the first digital image, and a mask identifying a portion of the second digital image. Using a machine learning model, the image combination system determines a feature of the portion of the second digital image identified by the mask to incorporate into content of the first digital image based on the prompt. The image combination system generates an edited digital image based on the edit described by the prompt, including the feature of the portion of the second digital image incorporated into the content of the first digital image. The image combination system then presents the edited digital image in a user interface.

## Claims

### Claim 1

A method comprising:
receiving, by a processing device, a first digital image, a second digital image, a prompt describing an edit to the first digital image, and a mask identifying a portion of the second digital image;
determining, by the processing device using a machine learning model, a feature of the portion of the second digital image identified by the mask to incorporate into a region of the first digital image based on the prompt;
identifying, by the processing device using the machine learning model, the region of the first digital image to incorporate the portion of the second digital image into based on the feature of the portion of the second digital image;
generating, by the processing device, an edited digital image based on the edit described by the prompt, including the feature of the portion of the second digital image incorporated into the region of the first digital image; and
presenting, by the processing device, the edited digital image in a user interface.

### Claim 2 (depends on 1)

The method of claim 1, wherein the prompt describes a visual feature of an object depicted in the edited digital image.

### Claim 3 (depends on 1)

The method of claim 1, wherein the feature of the portion of the second digital image is a texture depicted in the second digital image.

### Claim 4 (depends on 1)

The method of claim 1, wherein the feature of the portion of the second digital image is a shape depicted in the second digital image.

### Claim 5 (depends on 1)

The method of claim 1, wherein the machine learning model is a diffusion model that applies attentions to vectors describing features of the first digital image and the second digital image, including vectors describing the region of the first digital image to incorporate the portion of the second digital image into based on the feature of the portion of the second digital image.

### Claim 6 (depends on 5)

The method of claim 5, wherein the vectors describing the features of the first digital image are determined based on an additional mask indicating the region of the first digital image.

### Claim 7 (depends on 5)

The method of claim 5, further comprising determining the vectors describing the features of the first digital image by comparing the feature of the portion of the second digital image to features of the first digital image using the diffusion model.

### Claim 8 (depends on 5)

The method of claim 5, further comprising receiving an additional digital image and determining the feature of the portion of the second digital image or the additional digital image to incorporate into the first digital image based on the attentions applied by the diffusion model.

### Claim 9 (depends on 1)

The method of claim 1, wherein the machine learning model is a diffusion model that includes a contrastive language-image pretraining (CLIP) model and a convolutional neural network that generates the edited digital image by predicting noise for incorporation into the first digital image based on the mask.

### Claim 10

A system comprising:
a memory component; and
a processing device coupled to the memory component, the processing device to perform operations comprising:
receiving a first digital image, a second digital image, and a mask identifying a portion of the second digital image;
determining, using a machine learning model, a feature of the portion of the second digital image to incorporate into a region of the first digital image based on the mask;
identifying, using the machine learning model, the region of the first digital image to incorporate the portion of the second digital image into based on the feature of the portion of the second digital image;
generating an edited digital image by incorporating the feature of the portion of the second digital image into the region of the first digital image; and
presenting the edited digital image in a user interface.

### Claim 11 (depends on 10)

The system of claim 10, wherein the feature of the portion of the second digital image is a texture depicted in the second digital image.

### Claim 12 (depends on 10)

The system of claim 10, wherein the feature of the portion of the second digital image is a shape depicted in the second digital image.

### Claim 13 (depends on 10)

The system of claim 10, wherein the machine learning model is a diffusion model that applies attentions to vectors describing features of the first digital image and the second digital image.

### Claim 14 (depends on 13)

The system of claim 13, further comprising receiving an additional digital image and determining the feature of the portion of the second digital image or the additional digital image to incorporate into the first digital image based on the attentions applied by the diffusion model.

### Claim 15 (depends on 10)

The system of claim 10, wherein the machine learning model is a diffusion model that includes a contrastive language-image pretraining (CLIP) model and a convolutional neural network.

### Claim 16 (depends on 15)

The system of claim 15, wherein the diffusion model generates the edited digital image by predicting noise for incorporation into the first digital image based on the mask.

### Claim 17

A non-transitory computer-readable storage medium storing executable instructions, which when executed by a processing device, cause the processing device to perform operations comprising:
receiving a first digital image, a second digital image, and a mask identifying a portion of the first digital image;
identifying, using a machine learning model, a feature of the portion of the first digital image based on the mask;
determining, using the machine learning model, a feature of the portion of the second digital image to combine with the feature of the portion of the first digital image based on the feature of the portion of the first digital image;
generating an edited digital image by combining the feature of the portion of the second digital image with the feature of the portion of the first digital image; and
presenting the edited digital image in a user interface.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, further comprising receiving a prompt that is a description of the edited digital image that guides the machine learning model.

### Claim 19 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the machine learning model is a diffusion model that applies attentions to vectors describing features of the first digital image and the second digital image.

### Claim 20 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the machine learning model is a diffusion model that includes a contrastive language-image pretraining (CLIP) model and a convolutional neural network.
