Fabrice-TIERCELIN commited on
Commit
492f9d2
·
verified ·
1 Parent(s): de164b7

if end_latent is not None and is_end_of_video:

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -1047,7 +1047,7 @@ def worker_video(input_video, end_frame, end_stillness, prompts, n_prompt, seed,
1047
  return
1048
 
1049
  def compute_latent(history_latents, latent_window_size, latent_padding_size, num_clean_frames, start_latent, end_latent, end_stillness, is_end_of_video):
1050
- if is_end_of_video:
1051
  local_end_stillness = end_stillness
1052
  local_end_latent = end_latent.expand(-1, -1, 1 + local_end_stillness, -1, -1)
1053
  else:
 
1047
  return
1048
 
1049
  def compute_latent(history_latents, latent_window_size, latent_padding_size, num_clean_frames, start_latent, end_latent, end_stillness, is_end_of_video):
1050
+ if end_latent is not None and is_end_of_video:
1051
  local_end_stillness = end_stillness
1052
  local_end_latent = end_latent.expand(-1, -1, 1 + local_end_stillness, -1, -1)
1053
  else: