# US 2025/0166133 A1 · Modifying video content

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

- Number: US 2025/0166133 A1
- Document ID: US20250166133A1
- Status: Published application
- Kind: A1
- Application number: 18/596,543
- Filed: 2024-03-05
- Published: 2025-05-22
- Earliest claimed: 2023-11-16
- Assignees: QUALCOMM Incorporated
- Applicants: QUALCOMM Incorporated
- Inventors: Kumara KAHATAPITIYA; Davide ABATI; Amirhossein HABIBIAN; Yuki ASANO
- Web page: https://patentgrep.com/patent/US20250166133A1

## CPC

- G06T 5/60: using machine learning, e.g. neural networks
- G06T 5/77: Retouching; Inpainting; Scratch removal
- G06T 5/50: using two or more images, e.g. averaging or subtraction
- G06T 11/00: Two-dimensional [2D] image generation
- G06V 10/26: Segmentation of patterns in the image field; Cutting or merging of image elements to establish the pattern region, e.g. clustering-based techniques; Detection of occlusion
- G06V 10/764: using classification, e.g. of video objects
- G06V 20/46: {Extracting features or characteristics from the video content, e.g. video fingerprints, representative shots or key frames}
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20221: Image fusion; Image merging
- G06V 10/82: using neural networks
- G06V 20/41: {Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items (segmenting video sequences G06V20/49)}
- G06V 20/49: {Segmenting video sequences, i.e. computational techniques such as parsing or cutting the sequence, low-level clustering or determining units such as shots or scenes}
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Systems and techniques are described herein for modifying video data. For instance, a method for modifying video data is provided. The method may include obtaining first tokens based on a first frame of video data, wherein each of the first tokens comprises a feature vector corresponding to a respective location within the first frame of video data; obtaining second tokens based on a second frame of video data, wherein each of the second tokens comprises a feature vector corresponding to a respective location within the second frame of video data; determining a destination token from among the first tokens; determining candidate tokens from among the second tokens based on respective relationships between the candidate tokens and the destination token; merging the candidate tokens with the destination token resulting in modified second tokens; and processing the modified second tokens using a diffusion model.

## Claims

### Claim 1

An apparatus for modifying video data, the apparatus comprising:
one or more memories configured to store the video data; and
one or more processors coupled to the one or more memories and configured to:
obtain first tokens based on a first frame of the video data, wherein each of the first tokens comprises a feature vector corresponding to a respective location within the first frame of video data;
obtain second tokens based on a second frame of video data, wherein each of the second tokens comprises a feature vector corresponding to a respective location within the second frame of video data;
determine a destination token from among the first tokens;
determine candidate tokens from among the second tokens based on respective relationships between the candidate tokens and the destination token;
merge the candidate tokens with the destination token resulting in modified second tokens; and
process the modified second tokens using a diffusion model.

### Claim 2 (depends on 1)

The apparatus of claim 1, wherein the respective relationships between the candidate tokens and the destination token are based on a Cosine distance between the candidate tokens and the destination token.

### Claim 3 (depends on 1)

The apparatus of claim 1, wherein, to process the modified second tokens, the one or more processors are configured to process unmerged tokens of the second tokens and not process the merged candidate tokens.

### Claim 4 (depends on 1)

The apparatus of claim 1, wherein the one or more processors is configured to:
identify a first group of frames of the video data, the first group of frames comprising the first frame of the video data and the second frame of the video data;
identify additional group of frames of the video data;
determine additional modified tokens based on the additional group of frames of the video data; and
process the additional modified tokens using the diffusion model.

### Claim 5 (depends on 4)

The apparatus of claim 4, wherein the additional group of frames of video data comprises a pool of frames.

### Claim 6 (depends on 4)

The apparatus of claim 4, wherein the additional group of frames of video data comprises a sliding window of frames.

### Claim 7 (depends on 1)

The apparatus of claim 1, wherein the one or more processors is configured to:
generate, using the diffusion model based on the modified second tokens, an output image for display.

### Claim 8 (depends on 7)

The apparatus of claim 7, further comprising a display configured to display the output image.

### Claim 9 (depends on 1)

The apparatus of claim 1, further comprising at least one camera configured to capture the first frame and the second frame of the video data.

### Claim 10

An apparatus for modifying image data, the apparatus comprising:
one or more memories configured to store the image data; and
one or more processors coupled to the one or more memories and configured to:
obtain tokens based on image data, wherein each of the tokens comprises a feature vector corresponding to a respective location within the image data;
determine a destination token from among the tokens;
obtain a segmentation mask based on the image data;
determine candidate tokens from among the tokens based on respective relationships between the candidate tokens and the destination token and based on the segmentation mask;
merge the candidate tokens with the destination token resulting in modified tokens; and
process the modified tokens using a diffusion model.

### Claim 11 (depends on 10)

The apparatus of claim 10, wherein the segmentation mask is based on at least one of:
a foreground-background segmentation;
a saliency segmentation; or
a cross-attention map from latent representations.

### Claim 12 (depends on 10)

The apparatus of claim 10, wherein, to determine the candidate tokens from among the tokens based on respective relationships between the candidate tokens and the destination token and based on the segmentation mask, the one or more processors are configured to:
weight respective relationships between the candidate tokens and the destination token based on corresponding portions of the segmentation mask.

### Claim 13 (depends on 12)

The apparatus of claim 12, wherein the weighting causes tokens corresponding to salient portions of the image data, as identified by the segmentation mask, to be less likely to be determined to be candidate tokens.

### Claim 14 (depends on 10)

The apparatus of claim 10, wherein the candidate tokens are further based on a similarity threshold.

### Claim 15 (depends on 10)

The apparatus of claim 10, wherein the respective relationships between the candidate tokens and the destination token are based on a Cosine distance between the candidate tokens and the destination token.

### Claim 16 (depends on 10)

The apparatus of claim 10, wherein the image data comprises a frame of video data and wherein the one or more processors are configured to:
determine additional modified tokens based on additional frames of the video data; and
process the additional modified tokens using the diffusion model.

### Claim 17 (depends on 10)

The apparatus of claim 10, wherein the one or more processors is configured to:
generate, using the diffusion model based on the modified tokens, an output image for display.

### Claim 18 (depends on 17)

The apparatus of claim 17, further comprising a display configured to display the output image.

### Claim 19 (depends on 10)

The apparatus of claim 10, further comprising at least one camera configured to capture the image data.

### Claim 20

An apparatus for modifying image data, the apparatus comprising:
one or more memories configured to store the image data; and
one or more processors coupled to the one or more memories and configured to:
identify a first portion of image data and a second portion of the image data based on a segmentation mask;
process the first portion of the image data using a diffusion model to generate a modified first portion of the image data; and
generate modified image data based on the modified first portion of the image data and the second portion of the image data.

### Claim 21 (depends on 20)

The apparatus of claim 20, wherein, to generate the modified image data, the one or more processors is configured to combine the modified first portion of the image data and the second portion of the image data resulting in modified image data.

### Claim 22 (depends on 20)

The apparatus of claim 20, wherein:
the first portion of the image data is processed through a first number of diffusion steps of the diffusion model to generate the modified first portion of the image data; and
to generate the modified image data, the one or more processors is configured to process the modified first portion of the image data and the second portion of the image data using a second number of diffusion steps of the diffusion model to generate modified image data.

### Claim 23 (depends on 20)

The apparatus of claim 20, wherein the segmentation mask is based on at least one of:
a foreground-background segmentation;
a saliency segmentation; or
a cross-attention map from latent representations.

### Claim 24 (depends on 20)

The apparatus of claim 20, wherein, to combine the modified first portion of the image data and the second portion of the image data, the one or more processors are configured to blend pixels from the modified first portion of the image data and the second portion of the image data.

### Claim 25 (depends on 20)

The apparatus of claim 20, wherein the first portion of the image data is cropped from the image data.

### Claim 26 (depends on 20)

The apparatus of claim 20, wherein the first portion of the image data comprises a rectangular portion cropped from the image data.

### Claim 27 (depends on 20)

The apparatus of claim 20, further comprising at least one camera configured to capture the image data.

### Claim 28 (depends on 20)

The apparatus of claim 20, further comprising a display configured to display the modified image data.
