ComfyUI > Nodes > Comfyui-bitdance > BitDance Text Encode

ComfyUI Node: BitDance Text Encode

Class Name

BitDanceTextEncode

Category
conditioning/bitdance
Author
aistudynow (Account age: 0days)
Extension
Comfyui-bitdance
Latest Updated
2026-03-12
Github Stars
0.03K

How to Install Comfyui-bitdance

Install this extension via the ComfyUI Manager by searching for Comfyui-bitdance
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter Comfyui-bitdance 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

BitDance Text Encode Description

Transforms text prompts into embeddings for AI-driven art and multimedia content creation.

BitDance Text Encode:

The BitDanceTextEncode node is designed to transform textual prompts into embeddings that can be utilized in various AI-driven creative processes, such as generating art or enhancing multimedia content. This node is particularly beneficial for artists and creators who wish to leverage AI to interpret and visualize textual concepts. By converting positive and negative prompts into a format that AI models can understand, BitDanceTextEncode facilitates the seamless integration of textual ideas into digital art projects. Its primary function is to encode text in a way that captures the nuances and intentions behind the prompts, allowing for more accurate and expressive AI-generated outputs.

BitDance Text Encode Input Parameters:

text_encoder

The text_encoder parameter specifies the runtime environment for the text encoding process. It is crucial as it determines the model used to convert text into embeddings. This parameter impacts the quality and characteristics of the resulting embeddings, influencing how well the AI can interpret the prompts. There are no explicit minimum, maximum, or default values provided, but it should be a valid instance of BitDanceTextRuntime.

positive_prompt

The positive_prompt parameter is a string input that represents the textual concept or idea you want the AI to focus on positively. It plays a significant role in shaping the output by emphasizing the elements you wish to highlight in the generated content. There are no specific constraints on its length or content, but it should be a clear and concise representation of your desired focus.

negative_prompt

The negative_prompt parameter is a string input that indicates the aspects or elements you want the AI to minimize or avoid in the output. This parameter helps refine the generated content by providing a counterbalance to the positive prompt, ensuring that unwanted features are suppressed. Like the positive prompt, there are no strict limitations on its length or content, but it should effectively convey the elements you wish to de-emphasize.

force_offload

The force_offload parameter is a boolean that determines whether the model should be offloaded from memory after encoding. This can be useful for managing system resources, especially when working with large models. The default value is True, meaning the model will be offloaded unless specified otherwise.

model_to_offload

The model_to_offload parameter is an optional input that specifies a particular model to offload. This is useful when working with multiple models and you want to control which one is offloaded. If not provided, the system will handle offloading based on the force_offload setting.

use_disk_cache

The use_disk_cache parameter is a boolean that indicates whether to use disk caching for the embeddings. This can improve performance by reducing the need to recompute embeddings for the same prompts. The default value is False, meaning disk caching is not used unless explicitly enabled.

device

The device parameter specifies the hardware on which the encoding process will run, such as gpu or cpu. This affects the speed and efficiency of the encoding process, with gpu typically offering faster performance. The default value is gpu.

BitDance Text Encode Output Parameters:

pos_only

The pos_only output is an instance of BitDanceTextEmbedsRuntime that contains the embeddings generated from the positive prompt. This output is crucial for applications where the focus is on enhancing or emphasizing specific features in the generated content.

neg_only

The neg_only output is an instance of BitDanceTextEmbedsRuntime that contains the embeddings generated from the negative prompt. This output is important for applications where it is necessary to suppress or minimize certain features in the generated content.

positive_prompt

The positive_prompt output is a string that echoes the input positive prompt. This output serves as a confirmation of the prompt used in the encoding process, ensuring that the correct text was processed.

BitDance Text Encode Usage Tips:

  • Ensure that your positive and negative prompts are clear and concise to achieve the best results in AI-generated content.
  • Utilize the device parameter to leverage GPU resources for faster encoding, especially when working with large models or complex prompts.
  • Consider enabling use_disk_cache if you frequently reuse the same prompts, as this can significantly reduce processing time.

BitDance Text Encode Common Errors and Solutions:

"BitDanceSampler requires positive/negative embeds produced by BitDanceTextEncode or BitDance Text EncodeCached."

  • Explanation: This error occurs when the required embeddings are not available for the BitDanceSampler to function correctly.
  • Solution: Ensure that you have successfully run the BitDanceTextEncode or BitDanceTextEncodeCached node to generate the necessary embeddings before using the BitDanceSampler.

"ValueError: Invalid text encoder provided."

  • Explanation: This error indicates that the text_encoder parameter is not a valid instance of BitDanceTextRuntime.
  • Solution: Verify that the text_encoder parameter is correctly set to a valid BitDanceTextRuntime instance before executing the node.

BitDance Text Encode Related Nodes

Go back to the extension to check out more related nodes.
Comfyui-bitdance
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

BitDance Text Encode