From b7e4fe5d6dbb38e89df945663ea3970c4351a6f9 Mon Sep 17 00:00:00 2001 From: deepbeepmeep Date: Thu, 31 Jul 2025 01:20:41 +0200 Subject: [PATCH] removed auto color correction for first window --- wan/any2video.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wan/any2video.py b/wan/any2video.py index 61d03f1..a5e9248 100644 --- a/wan/any2video.py +++ b/wan/any2video.py @@ -899,8 +899,8 @@ class WanAny2V: videos = torch.cat([video[:,:1] for video in videos], dim=1) if len(videos) > 1 else videos[0][:,:1] else: videos = videos[0] # return only first video - if color_correction_strength > 0: - if vace and False and prefix_frames_count > 0: + if color_correction_strength > 0 and prefix_frames_count > 0: + if vace and False: # videos = match_and_blend_colors_with_mask(videos.unsqueeze(0), input_frames[0].unsqueeze(0), input_masks[0][:1].unsqueeze(0), color_correction_strength,copy_mode= "progressive_blend").squeeze(0) videos = match_and_blend_colors_with_mask(videos.unsqueeze(0), input_frames[0].unsqueeze(0), input_masks[0][:1].unsqueeze(0), color_correction_strength,copy_mode= "reference").squeeze(0) # videos = match_and_blend_colors_with_mask(videos.unsqueeze(0), videos.unsqueeze(0), input_masks[0][:1].unsqueeze(0), color_correction_strength,copy_mode= "reference").squeeze(0)