# US 2026/0094244 A1 · Processing images using a machine learning model

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

- Number: US 2026/0094244 A1
- Document ID: US20260094244A1
- Status: Published application
- Kind: A1
- Application number: 18/902,825
- Filed: 2024-09-30
- Published: 2026-04-02
- Earliest claimed: 2024-09-30
- Assignees: Lemon Inc.
- Applicants: Lemon Inc.
- Inventors: Ye Yuan; Fangyi Chen; Lu Xu; Longyin Wen
- Web page: https://patentgrep.com/patent/US20260094244A1

## CPC

- G06T 5/60: using machine learning, e.g. neural networks
- G06F 40/284: Lexical analysis, e.g. tokenisation or collocates
- G06T 7/194: involving foreground-background segmentation
- G06V 10/82: using neural networks
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

The present disclosure describes techniques for processing an image using a machine learning model. An instruction of decomposing the image into a plurality of layers is received. Visual features of the image are generated. Embeddings indicative of the plurality of layers are generated by a first sub-model of the machine learning model based on the visual features and textual tokens representative of the instruction. Layer images corresponding to the plurality of layers are generated by a second sub-model of the machine learning model based on the embeddings.

## Claims

### Claim 1

A method of processing an image using a machine learning model, comprising:
receiving an instruction of decomposing the image into a plurality of layers;
generating visual features of the image;
generating embeddings indicative of the plurality of layers based on the visual features and textual tokens representative of the instruction by a first sub-model of the machine learning model; and
generating layer images corresponding to the plurality of layers by a second sub-model of the machine learning model based on the embeddings.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
inputting the image into the second sub-model; and
projecting the embeddings to align with noised latent representations of the image.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
generating a latent representation for each of the plurality of layers based on noised latent representations of the image and a corresponding embedding among the embeddings indicative of the plurality of layers.

### Claim 4 (depends on 3)

The method of claim 3, further comprising:
generating an alpha channel corresponding to each of the plurality of layers based on the latent representation by a first decoder; and
generating a red, green, and blue (RGB) image corresponding to each of the plurality of layers based on the latent representation by a second decoder.

### Claim 5 (depends on 4)

The method of claim 4, further comprising:
generating each of the layer images by concatenating the alpha channel and the RGB image.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
generating the textual tokens representative of the instruction by a tokenizer;
generating the visual features of the image by a visual encoder;
projecting the visual features to align with the textual tokens; and
inputting the textual tokens and the projected visual features into the first sub-model for generating the embeddings.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
outputting a response to the instruction from the first sub-model, wherein the response comprises a text description of the image and a list of descriptions of the plurality of layers.

### Claim 8 (depends on 1)

The method of claim 1, further comprising:
editing the image based on the generated layer images.

### Claim 9 (depends on 1)

The method of claim 1, wherein the instruction comprises at least one of:
an instruction indicating a granularity level of decomposing the image;
an instruction to decompose the image based on one or more objects in the image; or
an instruction to decompose the image based on a group of objects in the image.

### Claim 10

A system of processing an image using a machine learning model, comprising:
at least one processor; and
at least one memory communicatively coupled to the at least one processor and comprising computer-readable instructions that upon execution by the at least one processor cause the at least one processor to perform operations comprising:
receiving an instruction of decomposing the image into a plurality of layers;
generating visual features of the image;
generating embeddings indicative of the plurality of layers based on the visual features and textual tokens representative of the instruction by a first sub-model of the machine learning model; and
generating layer images corresponding to the plurality of layers by a second sub-model of the machine learning model based on the embeddings.

### Claim 11 (depends on 10)

The system of claim 10, the operations further comprising:
inputting the image into the second sub-model; and
projecting the embeddings to align with noised latent representations of the image.

### Claim 12 (depends on 10)

The system of claim 10, the operations further comprising:
generating a latent representation for each of the plurality of layers based on noised latent representations of the image and a corresponding embedding among the embeddings indicative of the plurality of layers.

### Claim 13 (depends on 12)

The system of claim 12, the operations further comprising:
generating an alpha channel corresponding to each of the plurality of layers based on the latent representation by a first decoder; and
generating a red, green, and blue (RGB) image corresponding to each of the plurality of layers based on the latent representation by a second decoder; and
generating each of the layer images by concatenating the alpha channel and the RGB image.

### Claim 14 (depends on 10)

The system of claim 10, the operations further comprising:
generating the textual tokens representative of the instruction by a tokenizer;
generating the visual features of the image by a visual encoder;
projecting the visual features to align with the textual tokens; and
inputting the textual tokens and the projected visual features into the first sub-model for generating the embeddings.

### Claim 15 (depends on 10)

The system of claim 10, wherein the instruction comprises at least one of:
an instruction indicating a granularity level of decomposing the image;
an instruction to decompose the image based on one or more objects in the image; or
an instruction to decompose the image based on a group of objects in the image.

### Claim 16

A non-transitory computer-readable storage medium, storing computer-readable instructions that upon execution by a processor cause the processor to implement operations comprising:
receiving an instruction of decomposing the image into a plurality of layers;
generating visual features of the image;
generating embeddings indicative of the plurality of layers based on the visual features and textual tokens representative of the instruction by a first sub-model of the machine learning model; and
generating layer images corresponding to the plurality of layers by a second sub-model of the machine learning model based on the embeddings.

### Claim 17 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, the operations further comprising:
inputting the image into the second sub-model; and
projecting the embeddings to align with noised latent representations of the image.

### Claim 18 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, the operations further comprising:
generating a latent representation for each of the plurality of layers based on noised latent representations of the image and a corresponding embedding among the embeddings indicative of the plurality of layers.

### Claim 19 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, the operations further comprising:
generating an alpha channel corresponding to each of the plurality of layers based on the latent representation by a first decoder; and
generating a red, green, and blue (RGB) image corresponding to each of the plurality of layers based on the latent representation by a second decoder; and
generating each of the layer images by concatenating the alpha channel and the RGB image.

### Claim 20 (depends on 16)

The non-transitory computer-readable storage medium of claim 16, the operations further comprising:
generating the textual tokens representative of the instruction by a tokenizer;
generating the visual features of the image by a visual encoder;
projecting the visual features to align with the textual tokens; and
inputting the textual tokens and the projected visual features into the first sub-model for generating the embeddings.
