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)