Fabrice-TIERCELIN commited on
Commit
10d12cd
·
verified ·
1 Parent(s): 7b8c081

#effective_clean_frames = 1 # avoid jumpcuts from input video

Browse files
Files changed (1) hide show
  1. app_endframe.py +2 -2
app_endframe.py CHANGED
@@ -496,8 +496,8 @@ def worker(input_video, end_frame, end_frame_weight, prompt, n_prompt, seed, bat
496
  # 20250509 pftq: Dynamic frame allocation like original num_clean_frames, fix split error
497
  available_frames = video_latents.shape[2] if is_start_of_video else history_latents.shape[2]
498
  effective_clean_frames = max(0, num_clean_frames - 1) if num_clean_frames > 1 else 1
499
- if is_start_of_video:
500
- effective_clean_frames = 1 # avoid jumpcuts from input video
501
  print(f"££££££££££££££££££££££££££ is_start_of_video: {is_start_of_video} latent_padding: {latent_padding} effective_clean_frames: {effective_clean_frames}")
502
  clean_latent_pre_frames = effective_clean_frames
503
  num_2x_frames = min(2, max(1, available_frames - clean_latent_pre_frames - 1)) if available_frames > clean_latent_pre_frames + 1 else 1
 
496
  # 20250509 pftq: Dynamic frame allocation like original num_clean_frames, fix split error
497
  available_frames = video_latents.shape[2] if is_start_of_video else history_latents.shape[2]
498
  effective_clean_frames = max(0, num_clean_frames - 1) if num_clean_frames > 1 else 1
499
+ #if is_start_of_video:
500
+ #effective_clean_frames = 1 # avoid jumpcuts from input video
501
  print(f"££££££££££££££££££££££££££ is_start_of_video: {is_start_of_video} latent_padding: {latent_padding} effective_clean_frames: {effective_clean_frames}")
502
  clean_latent_pre_frames = effective_clean_frames
503
  num_2x_frames = min(2, max(1, available_frames - clean_latent_pre_frames - 1)) if available_frames > clean_latent_pre_frames + 1 else 1