ComfyUI  >  Nodes  >  SeargeSDXL >  Controlnet Adapter v2

ComfyUI Node: Controlnet Adapter v2

Class Name

SeargeControlnetAdapterV2

Category
Searge/UI/Prompting
Author
SeargeDP (Account age: 4180 days)
Extension
SeargeSDXL
Latest Updated
5/22/2024
Github Stars
0.7K

How to Install SeargeSDXL

Install this extension via the ComfyUI Manager by searching for  SeargeSDXL
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter SeargeSDXL in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Controlnet Adapter v2 Description

Versatile node for integrating controlnet inputs in ComfyUI, tailored for SDXL, enhancing image generation with configurable parameters and preprocessing techniques for AI artists.

Controlnet Adapter v2:

The SeargeControlnetAdapterV2 is a versatile node designed to integrate controlnet and revision inputs within the ComfyUI framework, specifically tailored for SDXL. This node facilitates the seamless application of controlnet models to enhance image generation processes by providing a range of configurable parameters. It supports various preprocessing techniques and allows for fine-tuning of controlnet effects, making it an essential tool for AI artists looking to achieve precise control over their image outputs. By leveraging this node, you can apply sophisticated controlnet models to your images, adjust their strength, and fine-tune thresholds to achieve the desired visual effects.

Controlnet Adapter v2 Input Parameters:

controlnet_mode

This parameter allows you to select the mode of the controlnet. It provides different modes that can be chosen based on the desired effect. The default value is UI.NONE, which means no controlnet mode is applied. This parameter is crucial as it determines the overall behavior of the controlnet model applied to the image.

controlnet_preprocessor

This is a boolean parameter that enables or disables the controlnet preprocessor. When set to True, the preprocessor is activated, which can enhance the controlnet's performance by preparing the input data more effectively. The default value is False.

strength

This parameter controls the intensity of the controlnet effect. It is a float value ranging from 0.0 to 10.0, with a default value of 0.5. Adjusting this parameter allows you to fine-tune the strength of the controlnet's influence on the image, providing more or less pronounced effects.

low_threshold

This float parameter sets the lower threshold for the controlnet effect, ranging from 0.0 to 1.0, with a default value of 0.25. It helps in defining the minimum intensity level at which the controlnet effect starts to apply, allowing for more precise control over the effect's application.

high_threshold

This parameter sets the upper threshold for the controlnet effect. It is a float value ranging from 0.0 to 1.0, with a default value of 0.5. This threshold determines the maximum intensity level of the controlnet effect, enabling you to cap the effect's strength at a desired level.

start_percent

This float parameter, ranging from 0.0 to 1.0 with a default value of 0.0, specifies the starting point of the controlnet effect as a percentage of the total process. It allows you to delay the application of the controlnet effect until a certain point in the image generation process.

end_percent

This parameter defines the endpoint of the controlnet effect as a percentage of the total process. It is a float value ranging from 0.0 to 1.0, with a default value of 1.0. This allows you to stop the controlnet effect before the image generation process is complete, providing more control over the effect's duration.

noise_augmentation

This float parameter, ranging from 0.0 to 1.0 with a default value of 0.0, adds noise to the controlnet effect. This can be useful for creating more varied and less predictable results, enhancing the creative possibilities of the controlnet application.

revision_enhancer

This boolean parameter, when set to True, activates the revision enhancer, which can improve the quality of the controlnet effect. The default value is False. This parameter is useful for refining the controlnet's output, making it more polished and accurate.

data

This optional parameter accepts a SRG_DATA_STREAM input, which can be used to provide additional data streams to the controlnet adapter. This can be useful for more complex workflows where multiple data inputs are required.

source_image

This optional parameter accepts an IMAGE input, allowing you to provide a source image that the controlnet will process. This is essential for applying controlnet effects to specific images.

Controlnet Adapter v2 Output Parameters:

data

This output parameter returns a SRG_DATA_STREAM, which contains the processed data stream after the controlnet effect has been applied. This stream can be used in subsequent nodes for further processing or analysis.

preview

This output parameter returns an IMAGE, which is a preview of the image after the controlnet effect has been applied. This allows you to visually inspect the results of the controlnet application and make any necessary adjustments.

Controlnet Adapter v2 Usage Tips:

  • Experiment with the strength parameter to find the optimal intensity for your controlnet effect. Start with the default value and adjust incrementally to see how it impacts your image.
  • Use the start_percent and end_percent parameters to control the duration of the controlnet effect. This can be particularly useful for creating effects that gradually appear or disappear.
  • Enable the controlnet_preprocessor if you find that the controlnet effect is not performing as expected. The preprocessor can help improve the quality of the input data.

Controlnet Adapter v2 Common Errors and Solutions:

"Invalid controlnet mode selected"

  • Explanation: This error occurs when an unsupported controlnet mode is chosen.
  • Solution: Ensure that you select a valid controlnet mode from the available options in the controlnet_mode parameter.

"Strength value out of range"

  • Explanation: This error happens when the strength parameter is set outside the allowed range of 0.0 to 10.0.
  • Solution: Adjust the strength parameter to a value within the specified range.

"Threshold values out of range"

  • Explanation: This error occurs when either the low_threshold or high_threshold parameters are set outside their allowed range of 0.0 to 1.0.
  • Solution: Ensure that both low_threshold and high_threshold parameters are within the specified range.

"Invalid start or end percent"

  • Explanation: This error happens when the start_percent or end_percent parameters are set outside the range of 0.0 to 1.0.
  • Solution: Adjust the start_percent and end_percent parameters to values within the specified range.

"Missing source image"

  • Explanation: This error occurs when the source_image parameter is not provided but is required for the controlnet effect.
  • Solution: Ensure that you provide a valid image input for the source_image parameter.

Controlnet Adapter v2 Related Nodes

Go back to the extension to check out more related nodes.
SeargeSDXL
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.