Visit ComfyUI Online for ready-to-use ComfyUI environment
Create and manage weighted text prompts for AI art generation.
The cutoff-region-util
node is designed to help you create and manage text prompts with specific regions and weights, which can be particularly useful in AI art generation. This node allows you to combine a main text with a target text and apply a weight to the combined text, making it easier to emphasize certain elements in your prompts. By using this node, you can fine-tune the importance of different parts of your text, ensuring that the AI model pays more attention to the specified regions. This can be especially beneficial when you want to highlight or de-emphasize certain aspects of your generated artwork.
This parameter allows you to input the main text that you want to include in your prompt. It is a string and can be multiline, which means you can input longer texts or multiple lines of text. The default value is "dress". This text will be combined with the target text to form the final prompt.
This parameter is used to specify the target text that you want to emphasize in your prompt. It is a single-line string with a default value of "white". If this parameter is not connected or defined, it will default to an empty string. This text will be combined with the main text and can be weighted to adjust its importance.
The weight parameter allows you to assign a weight to the combined text, which can influence how much emphasis the AI model places on this part of the prompt. It is a single-line string with a default value of "1.0". If the weight is not specified or is set to the default value, the text will be combined without additional weighting. Otherwise, the text will be enclosed in parentheses with the specified weight.
This output parameter provides the combined text of the target text and main text, optionally weighted according to the specified weight. This text is formatted to be used directly in your AI art generation prompts, ensuring that the specified regions are emphasized as intended.
This output parameter returns the target text that was input. This can be useful for verification or further processing in your workflow.
This output parameter returns the weight that was applied to the combined text. This allows you to keep track of the weighting used in your prompts, which can be useful for adjusting and fine-tuning your results.
main_text
parameter to input the primary subject or element you want to include in your prompt.target_text
parameter to specify any particular aspect or detail you want to emphasize in your artwork.weight
parameter to control the importance of the combined text in your prompt. A higher weight will make the AI model focus more on the specified region.main_text
or target_text
parameters are not connected, they may default to the string "undefined".main_text
and target_text
are empty or undefined, the resulting region_text
will also be empty.© Copyright 2024 RunComfy. All Rights Reserved.