Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix denoiser error. #157

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion efficiency_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def process_latent_image(model, seed, steps, cfg, sampler_name, scheduler, posit
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
comfy.samplers.KSampler = smZ_cfg_denoiser.KSampler
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:
Expand Down
1 change: 0 additions & 1 deletion py/smZ_cfg_denoiser.py
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,6 @@ def hook_for_settings_node_and_sampling():
_Sampler = comfy.samplers.Sampler
_max_denoise = comfy.samplers.Sampler.max_denoise
_sample = comfy.samplers.sample
_wrap_model = comfy.samplers.wrap_model

def get_value_from_args(args, kwargs, key_to_lookup, fn, idx=None):
value = None
Expand Down