You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -69,22 +71,7 @@ prompt = "A panda, dressed in a small, red jacket and a tiny hat, sits on a wood
69
71
video = pipe(prompt=prompt, guidance_scale=6, num_inference_steps=50).frames[0]
70
72
```
71
73
72
-
if you are using the image-to-video pipeline, you can use the following code to generate a video from an image:
73
-
74
-
```python
75
-
image = load_image("image_of_panda.jpg")
76
-
prompt ="A panda, dressed in a small, red jacket and a tiny hat, sits on a wooden stool in a serene bamboo forest. The panda's fluffy paws strum a miniature acoustic guitar, producing soft, melodic tunes. Nearby, a few other pandas gather, watching curiously and some clapping in rhythm. Sunlight filters through the tall bamboo, casting a gentle glow on the scene. The panda's face is expressive, showing concentration and joy as it plays. The background includes a small, flowing stream and vibrant green foliage, enhancing the peaceful and magical atmosphere of this unique musical performance."
77
-
video = pipe(prompt=prompt, image=image, guidance_scale=6, num_inference_steps=50).frames[0]
78
-
```
79
-
80
-
To save the video, use the following code:
81
-
82
-
```python
83
-
export_to_video(video, "panda_video.mp4")
84
-
```
85
-
86
-
87
-
The [benchmark](https://gist.github.com/a-r-r-o-w/5183d75e452a368fd17448fcc810bd3f) results on an 80GB A100 machine are:
74
+
The [T2V benchmark](https://gist.github.com/a-r-r-o-w/5183d75e452a368fd17448fcc810bd3f) results on an 80GB A100 machine are:
88
75
89
76
```
90
77
Without torch.compile(): Average inference time: 96.89 seconds.
0 commit comments