Fix cfg_denoiser AttributeError by calling register_hooks()

Co-authored-by: jags111 <5968619+jags111@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-03 23:05:38 +00:00
parent cd682e645f
commit 040aea25a1
4 changed files with 1 additions and 1 deletions

Binary file not shown.

View File

@@ -506,7 +506,7 @@ class TSC_KSampler:
rng_source, cfg_denoiser, add_seed_noise, m_seed, m_weight = script["noise"]
smZ_rng_source.rng_rand_source(rng_source) # this function monkey patches comfy.sample.prepare_noise
if cfg_denoiser:
comfy.samplers.KSampler = smZ_cfg_denoiser.SDKSampler
smZ_cfg_denoiser.register_hooks()
if add_seed_noise:
comfy.sample.prepare_noise = cg_mixed_seed_noise.get_mixed_noise_function(comfy.sample.prepare_noise, m_seed, m_weight)
else:

Binary file not shown.

Binary file not shown.