conditioning/controlnetgenerated

Set Shakker Labs Union ControlNet Type(SetShakkerLabsUnionControlNetType)

This node receives a CONTROL_NET input and, based on the user-selected `type` parameter, sets an additional parameter named `control_type` within the model.

Set Shakker Labs Union Control Net Type

control_net
CONTROL_NET
type
COMBO
KJNodes

The Set Shakker Labs Union ControlNet Type node receives a CONTROL_NET input and, based on the type parameter selected by the user, sets an additional parameter named control_type within the model.

The Set Shakker Labs Union ControlNet Type node is used to modify the type identifier of the incoming ControlNet model. Its core function is to allow users to specify or automatically detect the control type for a particular ControlNet model, ensuring it is correctly identified and processed in subsequent generation steps.

Node Function

This node receives a CONTROL_NET input and, based on the user-selected type parameter, sets an additional parameter named control_type within the model. Its technical implementation relies on a predefined mapping dictionary, SHAKKERLABS_UNION_CONTROLNET_TYPES, which maps human-readable type names to internal numeric identifiers. When "auto" is selected, the node clears this identifier, allowing subsequent processes to determine it automatically.

Node Parameter Description - Set Shakker Labs Union ControlNet Type

Connection Inputs (Inputs)

Parameter NameData TypeRequiredDefault ValueValue Range/OptionsDescription
control_netCONTROL_NETYes--: Receives a CONTROL_NET model object to be processed, serving as the base input for the node's operation.

Control Parameters (Parameters)

Parameter NameData TypeRequiredDefault ValueValue Range/OptionsDescription
typeCOMBOYesauto"auto": Specifies the control type for the ControlNet. Options include "auto" and all key names defined in the SHAKKERLABS_UNION_CONTROLNET_TYPES dictionary. Selecting "auto" delegates the determination to the system.

Output

Parameter NameData TypeDescription
CONTROL_NETCONTROL_NET: Outputs a copy of the CONTROL_NET model with the updated control type parameter.

Usage Scenarios

In a complex workflow involving multiple different control conditions (such as depth maps, edge detection, pose maps), this node can be placed after a ControlNet loader. For example, when you are unsure of the specific type of a ControlNet model or need to forcibly specify its type to ensure compatibility with a particular preprocessor, you can use this node to set or reset it.

Notes

Please note that the effectiveness of this node depends on whether downstream nodes or workflows recognize and utilize the additional control_type parameter. If subsequent processes do not rely on this information, the setting may not produce the expected effect.

The Set Shakker Labs Union ControlNet Type node is from the ComfyUI-KJNodes node package.

Comments

Sign in with GitHub to join the discussion.

Loading comments…