print(f"££££££££££££££££££££££££££ num_clean_frames: {num_clean_frames}")
Browse files- app_endframe.py +2 -2
app_endframe.py
CHANGED
|
@@ -494,6 +494,7 @@ def worker(input_video, end_frame, end_frame_weight, prompt, n_prompt, seed, bat
|
|
| 494 |
return
|
| 495 |
|
| 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:
|
|
@@ -553,8 +554,7 @@ def worker(input_video, end_frame, end_frame_weight, prompt, n_prompt, seed, bat
|
|
| 553 |
|
| 554 |
clean_latents = torch.cat([clean_latents_pre, clean_latents_post], dim=2)
|
| 555 |
|
| 556 |
-
|
| 557 |
-
max_frames = min(latent_window_size * 4, history_latents.shape[2] * 4)
|
| 558 |
print(f"Generating video {idx+1} of {batch} with seed {seed}, part {total_latent_sections - section_index} of {total_latent_sections} backward")
|
| 559 |
generated_latents = sample_hunyuan(
|
| 560 |
transformer=transformer,
|
|
|
|
| 494 |
return
|
| 495 |
|
| 496 |
# 20250509 pftq: Dynamic frame allocation like original num_clean_frames, fix split error
|
| 497 |
+
print(f"££££££££££££££££££££££££££ num_clean_frames: {num_clean_frames}")
|
| 498 |
available_frames = video_latents.shape[2] if is_start_of_video else history_latents.shape[2]
|
| 499 |
effective_clean_frames = max(0, num_clean_frames - 1) if num_clean_frames > 1 else 1
|
| 500 |
if is_start_of_video:
|
|
|
|
| 554 |
|
| 555 |
clean_latents = torch.cat([clean_latents_pre, clean_latents_post], dim=2)
|
| 556 |
|
| 557 |
+
max_frames = min(latent_window_size * 4 - 3, history_latents.shape[2] * 4)
|
|
|
|
| 558 |
print(f"Generating video {idx+1} of {batch} with seed {seed}, part {total_latent_sections - section_index} of {total_latent_sections} backward")
|
| 559 |
generated_latents = sample_hunyuan(
|
| 560 |
transformer=transformer,
|