MCPcopy Create free account
hub / github.com/blepping/ComfyUI-bleh / PatchTypeSamplerCfgFunction

Class PatchTypeSamplerCfgFunction

py/nodes/modelPatchConditional.py:135–141  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

133
134
135class PatchTypeSamplerCfgFunction(PatchTypeModel):
136 @classmethod
137 def _call(cls, patches, opts):
138 if not patches:
139 cond_pred, uncond_pred = opts["cond_denoised"], opts["uncond_denoised"]
140 return uncond_pred + (cond_pred - uncond_pred) * opts["cond_scale"]
141 return patches[0](opts)
142
143
144PATCH_TYPES = {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected