Visit ComfyUI Online for ready-to-use ComfyUI environment
Advanced text encoding node for AI art generation with precise embeddings and nuanced control.
The BNK_CLIPTextEncodeAdvanced node is designed to provide advanced text encoding capabilities using the CLIP model. This node allows you to input text and obtain high-quality embeddings that can be used for various conditioning tasks in AI art generation. By leveraging advanced token normalization and weight interpretation techniques, this node ensures that the text embeddings are finely tuned and balanced, providing more control over the generated outputs. The node is particularly useful for artists looking to incorporate nuanced textual descriptions into their AI models, enhancing the creative possibilities and precision of their work.
This parameter accepts a string input, which can be multiline, representing the text you want to encode. The text is tokenized and processed to generate embeddings. The quality and relevance of the text input directly impact the resulting embeddings and, consequently, the conditioning of the AI model.
This parameter requires a CLIP model instance. The CLIP model is used to tokenize and encode the input text, generating the embeddings that will be used for conditioning. Ensure that the CLIP model is properly loaded and compatible with the node.
This parameter offers several options for normalizing the tokens: none
, mean
, length
, and length+mean
. Token normalization helps in adjusting the weights of the tokens to ensure balanced embeddings. For example, mean
normalization adjusts the token weights to have a mean value, while length
normalization adjusts based on the length of the tokens. The default value is none
.
This parameter provides different methods for interpreting the weights of the tokens: comfy
, A1111
, compel
, comfy++
, and down_weight
. Each method offers a unique way of handling token weights, affecting the final embeddings. For instance, comfy
might provide a balanced interpretation, while down_weight
could reduce the influence of certain tokens. Choose the method that best suits your artistic needs.
This optional parameter can be set to disable
or enable
. When enabled, it applies the token normalization and weight interpretation to the pooled output as well. This can be useful if you want the pooled output to reflect the same adjustments as the individual token embeddings. The default value is disable
.
The output of this node is a tuple containing the final embeddings and a dictionary with the pooled output. The embeddings are used for conditioning the AI model, providing it with the encoded textual information. The pooled output is an aggregated representation of the embeddings, which can be useful for certain types of conditioning tasks.
token_normalization
and weight_interpretation
settings to find the best configuration for your specific text input and artistic goals.affect_pooled
parameter if you need the pooled output to reflect the same adjustments as the individual token embeddings.Invalid CLIP model instance
Text input is empty
Unsupported token normalization method
none
, mean
, length
, length+mean
.Unsupported weight interpretation method
comfy
, A1111
, compel
, comfy++
, down_weight
.© Copyright 2024 RunComfy. All Rights Reserved.