Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -152,16 +152,15 @@ def generate(
|
|
| 152 |
up_video = VideoData(
|
| 153 |
video_file=video_in,
|
| 154 |
height=shape_height, width=shape_width)
|
| 155 |
-
|
| 156 |
-
input_video = [up_video[i] for i in range(1, frame_len)]
|
| 157 |
|
| 158 |
video = pipe2(
|
| 159 |
prompt=prompt,
|
| 160 |
negative_prompt="verybadimagenegative_v1.3",
|
| 161 |
cfg_scale=3,
|
| 162 |
clip_skip=2,
|
| 163 |
-
controlnet_frames=input_video,
|
| 164 |
-
num_frames=
|
| 165 |
num_inference_steps=num_inference_steps,
|
| 166 |
height=height,
|
| 167 |
width=width,
|
|
|
|
| 152 |
up_video = VideoData(
|
| 153 |
video_file=video_in,
|
| 154 |
height=shape_height, width=shape_width)
|
| 155 |
+
input_video = [up_video[i] for i in range(1, num_frames)]
|
|
|
|
| 156 |
|
| 157 |
video = pipe2(
|
| 158 |
prompt=prompt,
|
| 159 |
negative_prompt="verybadimagenegative_v1.3",
|
| 160 |
cfg_scale=3,
|
| 161 |
clip_skip=2,
|
| 162 |
+
controlnet_frames=input_video,
|
| 163 |
+
num_frames=len(input_video),
|
| 164 |
num_inference_steps=num_inference_steps,
|
| 165 |
height=height,
|
| 166 |
width=width,
|