From b9b8ec7bf8b5b5422063ea2c9a30f7475b893412 Mon Sep 17 00:00:00 2001 From: kijai <40791699+kijai@users.noreply.github.com> Date: Sat, 19 Apr 2025 17:50:17 +0300 Subject: [PATCH] Apply Fresca for cfg 1.0 as well --- nodes.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/nodes.py b/nodes.py index d477846..215a676 100644 --- a/nodes.py +++ b/nodes.py @@ -2709,6 +2709,13 @@ class WanVideoSampler: ) noise_pred_cond = noise_pred_cond[0].to(intermediate_device) if math.isclose(cfg_scale, 1.0): + if use_fresca: + noise_pred_cond = fourier_filter( + noise_pred_cond, + scale_low=fresca_scale_low, + scale_high=fresca_scale_high, + freq_cutoff=fresca_freq_cutoff, + ) return noise_pred_cond, [teacache_state_cond] #uncond noise_pred_uncond, teacache_state_uncond = transformer(