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

Class PlusPlusInputGroup

adv_control/control_plusplus.py:63–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61
62
63class PlusPlusInputGroup:
64 def __init__(self):
65 self.controls: dict[str, PlusPlusInput] = {}
66
67 def add(self, pp_input: PlusPlusInput):
68 if pp_input.control_type in self.controls:
69 raise Exception(f"Control type '{pp_input.control_type}' is already present; ControlNet++ does not allow more than 1 of each type.")
70 self.controls[pp_input.control_type] = pp_input
71
72 def clone(self) -> 'PlusPlusInputGroup':
73 cloned = PlusPlusInputGroup()
74 for key, value in self.controls.items():
75 cloned.controls[key] = value.clone()
76 return cloned
77
78
79class PlusPlusImageWrapper(AbstractPreprocWrapper):

Callers 3

cloneMethod · 0.85
set_cond_hint_injectMethod · 0.85
wrap_imagesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected