Update context_windows.py

This commit is contained in:
kijai 2025-11-22 18:11:52 +02:00
parent e2269b4208
commit dcf721b772

View File

@ -575,7 +575,7 @@ def shift_window_to_end(window: list[int], num_frames: int):
# https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved/blob/90fb1331201a4b29488089e4fbffc0d82cc6d0a9/animatediff/sample_settings.py#L465 # https://github.com/Kosinkadink/ComfyUI-AnimateDiff-Evolved/blob/90fb1331201a4b29488089e4fbffc0d82cc6d0a9/animatediff/sample_settings.py#L465
def apply_freenoise(noise: torch.Tensor, context_length: int, context_overlap: int, seed: int): def apply_freenoise(noise: torch.Tensor, context_length: int, context_overlap: int, seed: int):
logging.info(f"Context windows: Applying FreeNoise") logging.info("Context windows: Applying FreeNoise")
generator = torch.manual_seed(seed) generator = torch.manual_seed(seed)
latent_video_length = noise.shape[2] latent_video_length = noise.shape[2]
delta = context_length - context_overlap delta = context_length - context_overlap