diff --git a/nodes.py b/nodes.py index 227bd37..5023be7 100644 --- a/nodes.py +++ b/nodes.py @@ -3455,6 +3455,8 @@ class WanVideoSampler: log.info(f"Sampling {total_frames} frames in {estimated_iterations} windows, at {latent.shape[3]*vae_upscale_factor}x{latent.shape[2]*vae_upscale_factor} with {steps} steps") while True: # start video generation iteratively + self.cache_state = [None, None] + cur_motion_frames_latent_num = int(1 + (cur_motion_frames_num-1) // 4) if mode == "infinitetalk": cond_image = original_images[:, :, current_condframe_index:current_condframe_index+1] if cond_image is not None else None