The most powerful and modular diffusion model GUI, api and backend with a graph/nodes interface. The fastest local inference engine in the world.
Add `cond_scale` to `sampler_post_cfg_function` (#5985)
catboxanon23827ca312a9
diff --git a/comfy/samplers.py b/comfy/samplers.pyindex b4c42160d..18ba13749 100644--- a/comfy/samplers.py+++ b/comfy/samplers.py@@ -346,7 +346,7 @@ def cfg_function(model, cond_pred, uncond_pred, cond_scale, x, timestep, model_ocfg_result = uncond_pred + (cond_pred - uncond_pred) * cond_scalefor fn in model_options.get("sampler_post_cfg_function", []):- args = {"denoised": cfg_result, "cond": cond, "uncond": uncond, "model": model, "uncond_denoised": uncond_pred, "cond_denoised": cond_pred,+ args = {"denoised": cfg_result, "cond": cond, "uncond": uncond, "cond_scale": cond_scale, "model": model, "uncond_denoised": uncond_pred, "cond_denoised": cond_pred,"sigma": timestep, "model_options": model_options, "input": x}cfg_result = fn(args)