Spaces:
Runtime error
Runtime error
if end_latent is not None and is_end_of_video:
Browse files
app.py
CHANGED
|
@@ -1053,7 +1053,7 @@ def worker_video(input_video, end_frame, end_stillness, prompts, n_prompt, seed,
|
|
| 1053 |
return
|
| 1054 |
|
| 1055 |
def compute_latent(history_latents, latent_window_size, latent_padding_size, num_clean_frames, start_latent, end_latent, end_stillness, is_end_of_video):
|
| 1056 |
-
if is_end_of_video:
|
| 1057 |
local_end_stillness = end_stillness
|
| 1058 |
local_end_latent = end_latent.expand(-1, -1, 1 + local_end_stillness, -1, -1)
|
| 1059 |
else:
|
|
|
|
| 1053 |
return
|
| 1054 |
|
| 1055 |
def compute_latent(history_latents, latent_window_size, latent_padding_size, num_clean_frames, start_latent, end_latent, end_stillness, is_end_of_video):
|
| 1056 |
+
if end_latent is not None and is_end_of_video:
|
| 1057 |
local_end_stillness = end_stillness
|
| 1058 |
local_end_latent = end_latent.expand(-1, -1, 1 + local_end_stillness, -1, -1)
|
| 1059 |
else:
|