ComfyUI  >  Nodes  >  wlsh_nodes >  CLIP Positive-Negative XL w/Text (WLSH)

ComfyUI Node: CLIP Positive-Negative XL w/Text (WLSH)

Class Name

CLIP Positive-Negative XL w_Text (WLSH)

Category
WLSH Nodes/conditioning
Author
wallish77 (Account age: 2229 days)
Extension
wlsh_nodes
Latest Updated
6/19/2024
Github Stars
0.1K

How to Install wlsh_nodes

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

CLIP Positive-Negative XL w/Text (WLSH) Description

Enhance AI art generation by encoding positive and negative textual prompts for precise control over creative outputs.

CLIP Positive-Negative XL w_Text (WLSH):

The CLIP Positive-Negative XL w_Text (WLSH) node is designed to enhance your AI art generation by leveraging the power of CLIP (Contrastive Language-Image Pre-Training) to encode both positive and negative textual prompts. This node allows you to input detailed descriptions for both desired and undesired elements in your artwork, which the CLIP model then processes to generate conditioning data. This conditioning data can be used to guide the AI in creating images that align closely with your artistic vision, ensuring that the generated content adheres to the specified positive attributes while avoiding the negative ones. The node is particularly useful for fine-tuning the aesthetic and thematic elements of your AI-generated art, making it a valuable tool for artists looking to achieve precise control over their creative outputs.

CLIP Positive-Negative XL w_Text (WLSH) Input Parameters:

clip

This parameter expects a CLIP model instance. The CLIP model is responsible for encoding the provided textual prompts into a format that can be used for conditioning the AI art generation process. The model interprets the text and generates embeddings that represent the semantic content of the prompts.

positive_g

This is a string parameter where you input the global positive text prompt. This prompt should describe the elements or attributes you want to be prominently featured in the generated artwork. The text can be multiline, allowing for detailed descriptions. There is no explicit minimum or maximum length, but more detailed prompts can provide better guidance to the model.

positive_l

This is a string parameter for the local positive text prompt. Similar to positive_g, this prompt should describe specific elements or attributes you want to include in the artwork. The local prompt can be used to add finer details or additional context to the global positive prompt. It also supports multiline input.

negative_g

This is a string parameter where you input the global negative text prompt. This prompt should describe the elements or attributes you want to avoid in the generated artwork. The text can be multiline, allowing for detailed descriptions. There is no explicit minimum or maximum length, but more detailed prompts can help the model better understand what to exclude.

negative_l

This is a string parameter for the local negative text prompt. Similar to negative_g, this prompt should describe specific elements or attributes you want to exclude from the artwork. The local prompt can be used to add finer details or additional context to the global negative prompt. It also supports multiline input.

width

This integer parameter specifies the width of the generated image. The default value is 1024, with a minimum value of 0 and a maximum value defined by the system's maximum resolution capability. Adjusting this parameter will affect the resolution and aspect ratio of the final output.

height

This integer parameter specifies the height of the generated image. The default value is 1024, with a minimum value of 0 and a maximum value defined by the system's maximum resolution capability. Adjusting this parameter will affect the resolution and aspect ratio of the final output.

crop_w

This integer parameter specifies the width of the crop area. The default value is 0, meaning no cropping will be applied. Adjusting this parameter allows you to focus on a specific region of the generated image.

crop_h

This integer parameter specifies the height of the crop area. The default value is 0, meaning no cropping will be applied. Adjusting this parameter allows you to focus on a specific region of the generated image.

target_width

This integer parameter specifies the target width for the final output. The default value is twice the width parameter, allowing for upscaling. Adjusting this parameter can help achieve the desired resolution for the final image.

target_height

This integer parameter specifies the target height for the final output. The default value is twice the height parameter, allowing for upscaling. Adjusting this parameter can help achieve the desired resolution for the final image.

CLIP Positive-Negative XL w_Text (WLSH) Output Parameters:

positive

This output provides the conditioning data for the positive text prompts. It includes the encoded representations of the global and local positive prompts, which guide the AI in generating images that align with the specified positive attributes.

negative

This output provides the conditioning data for the negative text prompts. It includes the encoded representations of the global and local negative prompts, which guide the AI in avoiding the specified negative attributes in the generated images.

positive_text

This output returns the combined positive text prompt, which is a concatenation of the global and local positive prompts. This combined text provides a comprehensive description of the desired elements in the artwork.

negative_text

This output returns the combined negative text prompt, which is a concatenation of the global and local negative prompts. This combined text provides a comprehensive description of the elements to be avoided in the artwork.

CLIP Positive-Negative XL w_Text (WLSH) Usage Tips:

  • Use detailed and specific descriptions in both positive and negative prompts to guide the AI more effectively.
  • Experiment with different combinations of global and local prompts to fine-tune the generated images.
  • Adjust the width and height parameters to match the desired resolution and aspect ratio of your final output.
  • Utilize the crop parameters to focus on specific regions of the generated image if needed.

CLIP Positive-Negative XL w_Text (WLSH) Common Errors and Solutions:

"CLIP model instance not provided"

  • Explanation: The clip parameter is missing or not correctly specified.
  • Solution: Ensure that a valid CLIP model instance is provided as input.

"Text prompt too long"

  • Explanation: The provided text prompt exceeds the maximum length that the CLIP model can process.
  • Solution: Shorten the text prompt to fit within the model's processing limits.

"Invalid resolution parameters"

  • Explanation: The specified width or height values are outside the acceptable range.
  • Solution: Adjust the width and height parameters to be within the minimum and maximum resolution limits.

"Cropping dimensions exceed image size"

  • Explanation: The specified crop width or height is larger than the image dimensions.
  • Solution: Ensure that the crop dimensions are within the bounds of the image size.

CLIP Positive-Negative XL w/Text (WLSH) Related Nodes

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