Decay from 3 frames
Browse files- app_endframe.py +2 -2
app_endframe.py
CHANGED
|
@@ -553,8 +553,8 @@ 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 |
-
max_frames = min(latent_window_size * 4 - 3, history_latents.shape[2] * 4)
|
| 557 |
-
|
| 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,
|
|
|
|
| 553 |
|
| 554 |
clean_latents = torch.cat([clean_latents_pre, clean_latents_post], dim=2)
|
| 555 |
|
| 556 |
+
#max_frames = min(latent_window_size * 4 - 3, history_latents.shape[2] * 4)
|
| 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,
|