MCPcopy Create free account
hub / github.com/Kosinkadink/ComfyUI-Advanced-ControlNet / create_wrapper_hooks

Function create_wrapper_hooks

adv_control/sampling.py:82–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

80 return len(wrappers) == 0
81
82def create_wrapper_hooks():
83 wrappers = {}
84 comfy.patcher_extension.add_wrapper_with_key(comfy.patcher_extension.WrappersMP.OUTER_SAMPLE,
85 WrapperConsts.ACN_OUTER_SAMPLE_WRAPPER_KEY,
86 acn_outer_sample_wrapper,
87 transformer_options=wrappers)
88 hooks = comfy.hooks.HookGroup()
89 hook = comfy.hooks.WrapperHook(wrappers)
90 hook.hook_id = WrapperConsts.ACN_OUTER_SAMPLE_WRAPPER_KEY
91 hook.custom_should_register = should_register_outer_sample_wrapper
92 hooks.add(hook)
93 return hooks
94
95def acn_outer_sample_wrapper(executor, *args, **kwargs):
96 controlnets_modified = False

Callers 1

Calls 1

addMethod · 0.45

Tested by

no test coverage detected