()
| 80 | return len(wrappers) == 0 |
| 81 | |
| 82 | def 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 | |
| 95 | def acn_outer_sample_wrapper(executor, *args, **kwargs): |
| 96 | controlnets_modified = False |
no test coverage detected