Skip to content

Commit 5e02493

Browse files
committed
prettier
1 parent d6c140b commit 5e02493

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

packages/tasks/src/tasks/image-to-video/inference.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,6 @@ export interface ImageToVideoInput {
2222
* Additional inference parameters for Image To Video
2323
*/
2424
export interface ImageToVideoParameters {
25-
/**
26-
* The text prompt to guide the video generation.
27-
*/
28-
prompt?: string;
2925
/**
3026
* For diffusion models. A higher guidance scale value encourages the model to generate
3127
* videos closely linked to the text prompt at the expense of lower image quality.
@@ -35,26 +31,29 @@ export interface ImageToVideoParameters {
3531
* One prompt to guide what NOT to include in video generation.
3632
*/
3733
negative_prompt?: string;
34+
/**
35+
* The num_frames parameter determines how many video frames are generated.
36+
*/
37+
num_frames?: number;
3838
/**
3939
* The number of denoising steps. More denoising steps usually lead to a higher quality
4040
* video at the expense of slower inference.
4141
*/
4242
num_inference_steps?: number;
4343
/**
44-
* The num_frames parameter determines how many video frames are generated.
45-
*/
46-
num_frames?: number;
47-
/**
48-
* The size in pixel of the output video frames.
44+
* The text prompt to guide the video generation.
4945
*/
50-
target_size?: TargetSize;
46+
prompt?: string;
5147
/**
5248
* Seed for the random number generator.
5349
*/
5450
seed?: number;
51+
/**
52+
* The size in pixel of the output video frames.
53+
*/
54+
target_size?: TargetSize;
5555
[property: string]: unknown;
5656
}
57-
5857
/**
5958
* The size in pixel of the output video frames.
6059
*/
@@ -63,7 +62,6 @@ export interface TargetSize {
6362
width: number;
6463
[property: string]: unknown;
6564
}
66-
6765
/**
6866
* Outputs of inference for the Image To Video task
6967
*/

0 commit comments

Comments
 (0)