ComfyUI  >  Nodes  >  ComfyUI >  GLIGENTextBoxApply

ComfyUI Node: GLIGENTextBoxApply

Class Name

GLIGENTextBoxApply

Category
conditioning/gligen
Author
ComfyAnonymous (Account age: 598 days)
Extension
ComfyUI
Latest Updated
8/12/2024
Github Stars
45.9K

How to Install ComfyUI

Install this extension via the ComfyUI Manager by searching for  ComfyUI
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI 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

GLIGENTextBoxApply Description

Enhances AI art generation by integrating text-based positional information for precise control over artwork generation.

GLIGENTextBoxApply:

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.

GLIGENTextBoxApply Input Parameters:

conditioning_to

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.

clip

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.

gligen_textbox_model

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.

text

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.

width

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.

height

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.

x

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.

y

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.

GLIGENTextBoxApply Output Parameters:

CONDITIONING

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.

GLIGENTextBoxApply Usage Tips:

  • Ensure that the 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.
  • Adjust the width and height parameters to fine-tune the area of influence for the text conditioning, especially when working with high-resolution images.
  • Use the 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.

GLIGENTextBoxApply Common Errors and Solutions:

"Invalid conditioning data format"

  • Explanation: The conditioning_to parameter may not be in the expected format.
  • Solution: Ensure that the input to conditioning_to is a list of conditioning data structures compatible with the node.

"CLIP model not provided"

  • Explanation: The clip parameter is missing or not correctly specified.
  • Solution: Provide a valid CLIP model instance to the clip parameter to enable text encoding.

"GLIGEN model not provided"

  • Explanation: The gligen_textbox_model parameter is missing or not correctly specified.
  • Solution: Ensure that a valid GLIGEN model is provided to the gligen_textbox_model parameter.

"Text input is empty"

  • Explanation: The text parameter is empty or not provided.
  • Solution: Provide a non-empty string to the text parameter to generate the necessary conditioning embeddings.

"Invalid dimensions for text box"

  • Explanation: The width or height parameters are set to values outside the allowed range.
  • Solution: Adjust the width and height parameters to values within the specified range (8 to MAX_RESOLUTION).

"Invalid position for text box"

  • Explanation: The x or y parameters are set to values outside the allowed range.
  • Solution: Adjust the x and y parameters to values within the specified range (0 to MAX_RESOLUTION).

GLIGENTextBoxApply Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI
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.