From 5ff02e65dd1381b40c98d42d746db54122bde67d Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 25 Oct 2026 16:42:56 +0000 Subject: [PATCH] Noise merging: the log says how far apart the two answers were at each merged step Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_01VmbxSsiiz8wmt226dtbFXe --- modules/sampling/noise_merge/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/sampling/noise_merge/__init__.py b/modules/sampling/noise_merge/__init__.py index 3d7816c1..d8e94a48 100644 --- a/modules/sampling/noise_merge/__init__.py +++ b/modules/sampling/noise_merge/__init__.py @@ -132,6 +132,10 @@ def install(patcher, values, key): if split_b is None: return out video_b, rebuild_b = split_b + diff = float((video_a - video_b).norm() / video_a.norm().clamp(min=1e-8)) + log.info("FunUI Noise merging", + f"step {where[0] + 1}: second answer differs from the first by {diff:.1%}, " + f"merged at {strength:.2f}") if b_first: return rebuild_a(merge(video_a, video_b, strength).to(video_a.dtype)) return rebuild_b(merge(video_b, video_a, strength).to(video_b.dtype))