Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates batch scheduling of text box positions for GLIGEN within AnimateDiff-Evolved framework.
GLIGENTextBoxApplyBatchCoords is a node designed to facilitate the scheduling of GLIGEN text box positions within a batch, specifically for use with the AnimateDiff-Evolved framework. This node is intended to work in conjunction with the Spline Editor node, allowing you to define and apply text box coordinates in a batch processing manner. By leveraging this node, you can efficiently manage and apply text box positions across multiple latents, ensuring consistency and precision in your AI-generated art. The GLIGEN model required for this node can be easily downloaded through the Manage's "Install Models" menu or directly from the provided link. This node simplifies the process of setting text box positions, making it accessible even for those without a deep technical background.
The latents
input is used to calculate the batch size. It represents the latent variables that are processed in the batch, and the size of this input determines how many text box positions need to be applied. This parameter is crucial for ensuring that the number of coordinates matches the number of latents being processed.
The clip
parameter is your standard text encoder, which should be the same as the one used for the main prompt. This encoder processes the text input and generates the necessary embeddings for positioning the text boxes. It ensures that the text is encoded consistently with the rest of your project.
The gligen_textbox_model
connects to the GLIGEN Loader. This model is responsible for applying the text box positions based on the coordinates and other parameters provided. It is essential for integrating the GLIGEN functionality into your workflow.
The coordinates
parameter takes a JSON string of points, which is directly compatible with the spline editor node. These coordinates define the positions where the text boxes will be placed. The JSON string should be formatted correctly to ensure accurate positioning.
The text
parameter is the part of the prompt for which you want to set the position. This text will be encoded and positioned according to the coordinates and other parameters provided. It allows you to specify the exact text content that will be placed in the text boxes.
The width
parameter defines the width of the GLIGEN bounding box. This value determines how wide the text box will be, affecting the layout and appearance of the text within the box.
The height
parameter defines the height of the GLIGEN bounding box. Similar to the width parameter, this value determines the height of the text box, influencing the overall layout and appearance of the text.
The conditioning
output is used between the clip text encode and the sampler. It represents the conditioned embeddings that have been adjusted based on the text box positions. This output is essential for ensuring that the text boxes are correctly positioned in the final output.
The coord_preview
output is an optional preview of the coordinates and bounding boxes. This preview allows you to visualize the positions and sizes of the text boxes before finalizing the output, helping you make any necessary adjustments.
coordinates
parameter is correctly formatted to avoid errors in positioning.coord_preview
output to visualize and verify the text box positions before finalizing your project.clip
encoder is consistent with the one used for the main prompt to maintain coherence in text encoding.coordinates
parameter contains the correct number of points corresponding to the batch size of the latents.coordinates
parameter is not correctly formatted.size_multiplier
array does not match the batch size.size_multiplier
array to ensure it matches the batch size, either by repeating values or trimming the array as necessary.© Copyright 2024 RunComfy. All Rights Reserved.