ComfyUI  >  Nodes  >  wlsh_nodes >  CLIP Positive-Negative (WLSH)

ComfyUI Node: CLIP Positive-Negative (WLSH)

Class Name

CLIP Positive-Negative (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 (WLSH) Description

Facilitates encoding positive/negative prompts for AI artists using CLIP model to condition models with specific textual descriptions.

CLIP Positive-Negative (WLSH):

The CLIP Positive-Negative (WLSH) node is designed to facilitate the encoding of positive and negative textual prompts using the CLIP model. This node is particularly useful for AI artists who want to leverage the power of CLIP to condition their models with specific textual descriptions. By providing both positive and negative text inputs, the node encodes these texts into a format that can be used to influence the generation process, allowing for more controlled and nuanced outputs. This capability is essential for tasks that require fine-tuned conditioning, such as generating images that adhere closely to a given description while avoiding certain unwanted features.

CLIP Positive-Negative (WLSH) Input Parameters:

clip

This parameter expects a CLIP model instance. The CLIP model is responsible for encoding the provided textual inputs into a format that can be used for conditioning. The model should be pre-loaded and ready to use.

positive_text

This parameter takes a string input that represents the positive textual prompt. The text provided here will be encoded by the CLIP model to generate a positive conditioning vector. This vector will guide the model towards generating outputs that align with the positive description. The default value is an empty string, and it supports multiline input for more complex descriptions.

negative_text

This parameter takes a string input that represents the negative textual prompt. Similar to the positive_text parameter, the text provided here will be encoded by the CLIP model to generate a negative conditioning vector. This vector will help the model avoid generating outputs that contain features described in the negative prompt. The default value is an empty string, and it supports multiline input for more detailed descriptions.

CLIP Positive-Negative (WLSH) Output Parameters:

positive

This output provides the encoded positive conditioning vector. It is a tuple containing the encoded representation of the positive text and an empty dictionary. This vector is used to influence the model towards generating outputs that match the positive description.

negative

This output provides the encoded negative conditioning vector. Similar to the positive output, it is a tuple containing the encoded representation of the negative text and an empty dictionary. This vector helps the model avoid generating outputs that include features described in the negative prompt.

CLIP Positive-Negative (WLSH) Usage Tips:

  • To achieve the best results, provide clear and concise descriptions in both the positive and negative text inputs. This helps the CLIP model generate more accurate conditioning vectors.
  • Experiment with different combinations of positive and negative prompts to fine-tune the output. For example, if you want to generate an image of a cat without any background, you can use "a cat" as the positive text and "background" as the negative text.
  • Utilize multiline input for more complex descriptions. This can help in scenarios where a single line of text is not sufficient to capture the desired features or avoid certain elements.

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

"CLIP model not provided"

  • Explanation: This error occurs when the CLIP model instance is not provided as an input.
  • Solution: Ensure that you have loaded and passed a valid CLIP model instance to the clip parameter.

"Text input is empty"

  • Explanation: This error occurs when the positive_text or negative_text input is left empty.
  • Solution: Provide a valid string input for both the positive_text and negative_text parameters. Even if you do not have a specific negative prompt, consider using a generic term to avoid unwanted features.

"Encoding failed"

  • Explanation: This error occurs when the CLIP model fails to encode the provided text inputs.
  • Solution: Verify that the CLIP model is functioning correctly and that the text inputs are valid strings. If the problem persists, try reloading the CLIP model or using different text inputs.

CLIP Positive-Negative (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.