# US 2025/0166135 A1 · Fine-grained controllable video generation

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

- Number: US 2025/0166135 A1
- Document ID: US20250166135A1
- Status: Published application
- Kind: A1
- Application number: 18/951,203
- Filed: 2024-11-18
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Assignees: Google Inc.
- Applicants: Google LLC
- Inventors: Yu-Chuan Su; Hsin-Ping Huang; Ming-Hsuan Yang; Deqing Sun; Lu Jiang; Yukun Zhu; Xuhui Jia
- Web page: https://patentgrep.com/patent/US20250166135A1

## CPC

- G06T 11/23: using straight lines or curves
- G06T 5/60: using machine learning, e.g. neural networks
- G06T 7/0002: {Inspection of images, e.g. flaw detection}
- G06T 7/248: {involving reference images or patches}
- G06T 11/60: Creating or editing images; Combining images with text
- G06T 2200/24: involving graphical user interfaces [GUIs]
- G06T 2207/10016: Video; Image sequence
- G06T 2207/20081: Training; Learning
- G06T 2207/20084: Artificial neural networks [ANN]
- G06T 2207/20101: Interactive definition of point of interest, landmark or seed
- G06T 2207/30168: Image quality inspection
- G06T 2207/30241: Trajectory
- G06T: IMAGE DATA PROCESSING OR GENERATION, IN GENERAL

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for controllable video generation. One of the methods includes receiving a text prompt that specifies an object; receiving a control input that comprises an image that depicts a particular instance of the object; generating a video that comprises a respective video frame at each of a plurality of time steps in the video and that depicts the particular instance of the object. Generating the video includes, at each of the plurality of time steps: obtaining a text prompt embedding; obtaining a control input embedding; and generating the respective video frame at the time step using a video generation neural network while the video generation neural network is conditioned on the text prompt embedding and on the control input embedding.

## Claims

### Claim 1

A computer-implemented method comprising:
receiving a text prompt that specifies an object;
receiving a control input that comprises an image that depicts a particular instance of the object;
generating a video that comprises a respective video frame at each of a plurality of time steps in the video and that depicts the particular instance of the object, wherein generating the video comprises, at each of the plurality of time steps:
obtaining a text prompt embedding that is generated by a joint encoder neural network based on the text prompt;
obtaining a control input embedding, the control input embedding comprising an image embedding that is generated by the joint encoder neural network based on the image; and
generating the respective video frame at the time step using a video generation neural network while the video generation neural network is conditioned on the text prompt embedding and on the control input embedding.

### Claim 2 (depends on 1)

The method of claim 1, wherein obtaining the control input embedding comprises:
processing the image using an image encoder tower of the joint encoder neural network to generate the image embedding.

### Claim 3 (depends on 1)

The method of claim 1, wherein the control input further comprises location data that defines a location of the object within the respective video frame at each of the plurality of time steps, and wherein the video depicts the particular instance of the object at the defined location within the respective video frame at each of the plurality of time steps.

### Claim 4 (depends on 3)

The method of claim 3, wherein receiving the control input comprises:
receiving one or more user inputs that characterize a trajectory of the object across the plurality of time steps; and
determining, from the user input, the location of the object within the respective video frame at each of the plurality of time steps.

### Claim 5 (depends on 4)

The method of claim 4, wherein the one or more user inputs comprise a drawing input that specifies a sketch image.

### Claim 6 (depends on 3)

The method of claim 3, wherein the control input embedding further comprises a location embedding that is generated by the joint encoder neural network based on the location data.

### Claim 7 (depends on 6)

The method of claim 6, wherein obtaining the control input embedding comprises:
processing the location data using a text encoder tower of the joint encoder neural network to generate the location embedding.

### Claim 8 (depends on 1)

The method of claim 1, wherein the video generation neural network comprises one or more attention blocks, wherein each attention block comprises a self-attention layer followed by a cross-attention layer followed by an adaptive cross-attention layer, and wherein generating the respective video frame at the time step using the video generation neural network while the video generation neural network is conditioned on the text prompt embedding and on the control input embedding comprises:
processing, by the self-attention layer, a self-attention layer input that comprises the text prompt embedding and the control input embedding to generate a self-attention layer output by applying a self-attention mechanism over the self-attention layer input;
processing, by the cross-attention layer, the self-attention layer output and the text prompt embedding to generate a cross-attention layer output by applying a cross-attention mechanism over the self-attention layer output and the text prompt embedding; and
processing, by the adaptive cross-attention layer, the cross-attention layer output and the control input embedding to generate an adaptive cross-attention layer output by applying the cross-attention mechanism over the cross-attention layer output and the control input embedding.

### Claim 9

A computer-implemented method of training a video generation neural network, wherein the method comprises:
obtaining data specifying a pre-trained video generation neural network that has been pre-trained to generate videos conditioned on text inputs, wherein the pre-trained video generation neural network comprises one or more original attention blocks, each original attention blocks comprising a self-attention layer followed by a cross-attention layer;
generating the video generation neural network from the pre-trained video generation neural network by inserting an adaptive cross-attention layer to each of the one or more original attention blocks; and
training the video generation neural network to determine trained parameter values of the adaptive cross-attention layers while holding pre-trained parameter values of the self-attention layer and the cross-attention layer included in each of the one or more original attention blocks fixed.

### Claim 10 (depends on 9)

The method of claim 9, wherein training the video generation neural network comprises training the video generation neural network on a plurality of training inputs to optimize an objective function, wherein each training input includes (i) a training text prompt, (ii) a training image, and (iii) training location data.

### Claim 11 (depends on 10)

The method of claim 10, wherein training the video generation neural network comprises generating the training location data for each of the plurality of training inputs by applying an object detector and an object tracker to a plurality of video clips.

### Claim 12 (depends on 10)

The method of claim 10, wherein the objective function evaluates, for each of the plurality of training inputs:
(i) a quality of training video frames generated by the video generation neural network,
(ii) a text-to-image similarity between each of the training video frames and training text,
(iii) a difference between locations of an object depicted in the training video frames and locations of the object defined in the training location data, and
(iv) an image-to-image similarity between each of the training video frames and the training image.

### Claim 13 (depends on 12)

The method of claim 12, wherein the quality of training video frames is evaluated using a Frechet Video Distance (FVD) metric.

### Claim 14

A system comprising one or more computers and one or more storage devices storing instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising:
receiving a text prompt that specifies an object;
receiving a control input that comprises an image that depicts a particular instance of the object;
generating a video that comprises a respective video frame at each of a plurality of time steps in the video and that depicts the particular instance of the object, wherein generating the video comprises, at each of the plurality of time steps:
obtaining a text prompt embedding that is generated by a joint encoder neural network based on the text prompt;
obtaining a control input embedding, the control input embedding comprising an image embedding that is generated by the joint encoder neural network based on the image; and
generating the respective video frame at the time step using a video generation neural network while the video generation neural network is conditioned on the text prompt embedding and on the control input embedding.

### Claim 15 (depends on 14)

The system of claim 14, wherein obtaining the control input embedding comprises:
processing the image using an image encoder tower of the joint encoder neural network to generate the image embedding.

### Claim 16 (depends on 14)

The system of claim 14, wherein the control input further comprises location data that defines a location of the object within the respective video frame at each of the plurality of time steps, and wherein the video depicts the particular instance of the object at the defined location within the respective video frame at each of the plurality of time steps.

### Claim 17 (depends on 16)

The system of claim 16, wherein receiving the control input comprises:
receiving one or more user inputs that characterize a trajectory of the object across the plurality of time steps; and
determining, from the user input, the location of the object within the respective video frame at each of the plurality of time steps.

### Claim 18 (depends on 17)

The system of claim 17, wherein the one or more user inputs comprise a drawing input that specifies a sketch image.

### Claim 19 (depends on 16)

The system of claim 16, wherein the control input embedding further comprises a location embedding that is generated by the joint encoder neural network based on the location data.

### Claim 20

A non-transitory computer storage medium encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform operations comprising:
receiving a text prompt that specifies an object;
receiving a control input that comprises an image that depicts a particular instance of the object;
generating a video that comprises a respective video frame at each of a plurality of time steps in the video and that depicts the particular instance of the object, wherein generating the video comprises, at each of the plurality of time steps:
obtaining a text prompt embedding that is generated by a joint encoder neural network based on the text prompt;
obtaining a control input embedding, the control input embedding comprising an image embedding that is generated by the joint encoder neural network based on the image; and
generating the respective video frame at the time step using a video generation neural network while the video generation neural network is conditioned on the text prompt embedding and on the control input embedding.
