Visit ComfyUI Online for ready-to-use ComfyUI environment
Enhances AI art generation by integrating text-based positional information for precise control over artwork generation.
The GLIGENTextBoxApply
node is designed to enhance the conditioning process in AI art generation by integrating text-based positional information into the conditioning data. This node leverages the GLIGEN model to apply text box parameters, such as position and dimensions, to the conditioning data, allowing for more precise control over the generated artwork. By encoding text prompts and associating them with specific regions in the image, this node enables artists to guide the AI in generating content that aligns closely with their creative vision. The primary function of this node is to append the positional conditioning data to the existing conditioning, thereby enriching the context provided to the AI model during the generation process.
This parameter expects a list of conditioning data that the node will modify. It serves as the base conditioning to which the new positional information will be appended.
The clip
parameter is a CLIP model instance used to encode the text input. This model tokenizes and encodes the text, providing the necessary embeddings for the conditioning process.
This parameter specifies the GLIGEN model to be used for applying the text box conditioning. It is essential for integrating the positional information into the conditioning data.
The text
parameter is a string input that can be multiline and supports dynamic prompts. This text is tokenized and encoded to generate the conditioning embeddings. It allows artists to specify the content they want to influence within the specified region.
The width
parameter defines the width of the text box in pixels. It has a default value of 64, with a minimum of 8 and a maximum defined by MAX_RESOLUTION
, adjustable in steps of 8. This parameter controls the horizontal span of the region influenced by the text.
The height
parameter defines the height of the text box in pixels. Similar to width
, it has a default value of 64, with a minimum of 8 and a maximum defined by MAX_RESOLUTION
, adjustable in steps of 8. This parameter controls the vertical span of the region influenced by the text.
The x
parameter specifies the x-coordinate of the top-left corner of the text box. It has a default value of 0, with a minimum of 0 and a maximum defined by MAX_RESOLUTION
, adjustable in steps of 8. This parameter determines the horizontal position of the text box within the image.
The y
parameter specifies the y-coordinate of the top-left corner of the text box. It has a default value of 0, with a minimum of 0 and a maximum defined by MAX_RESOLUTION
, adjustable in steps of 8. This parameter determines the vertical position of the text box within the image.
The output is a modified conditioning data structure that includes the appended positional information from the GLIGEN model. This enriched conditioning data provides the AI model with additional context, enabling it to generate content that aligns more closely with the specified text and positional parameters.
text
parameter is descriptive and relevant to the region specified by the x
, y
, width
, and height
parameters to achieve the desired influence on the generated content.width
and height
parameters to fine-tune the area of influence for the text conditioning, especially when working with high-resolution images.x
and y
parameters to position the text box accurately within the image, allowing for precise control over where the text-based influence is applied.conditioning_to
parameter may not be in the expected format.conditioning_to
is a list of conditioning data structures compatible with the node.clip
parameter is missing or not correctly specified.clip
parameter to enable text encoding.gligen_textbox_model
parameter is missing or not correctly specified.gligen_textbox_model
parameter.text
parameter is empty or not provided.text
parameter to generate the necessary conditioning embeddings.width
or height
parameters are set to values outside the allowed range.width
and height
parameters to values within the specified range (8 to MAX_RESOLUTION
).x
or y
parameters are set to values outside the allowed range.x
and y
parameters to values within the specified range (0 to MAX_RESOLUTION
).© Copyright 2024 RunComfy. All Rights Reserved.