MCPcopy Create free account
hub / github.com/Extraltodeus/DistanceSampler / post_cfg_function

Function post_cfg_function

custom_samplers.py:132–135  ·  view source on GitHub ↗
(args)

Source from the content-addressed store, hash-verified

130 if cfgpp or use_negative:
131 uncond = None
132 def post_cfg_function(args):
133 nonlocal uncond
134 uncond = args["uncond_denoised"]
135 return args["denoised"]
136 model_options = extra_args.get("model_options", {}).copy()
137 extra_args["model_options"] = comfy.model_patcher.set_model_options_post_cfg_function(model_options, post_cfg_function)
138

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected