mirror of
https://github.com/jags111/efficiency-nodes-comfyui.git
synced 2026-03-21 21:22:13 -03:00
Fix cfg_denoiser AttributeError by calling register_hooks()
Co-authored-by: jags111 <5968619+jags111@users.noreply.github.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user