Visit ComfyUI Online for ready-to-use ComfyUI environment
Facilitates text prompt generation and translation for AI art with language detection, Chinese-English translation, and grammar-based prompts.
The ChinesePrompt_Mix node is designed to facilitate the generation and translation of text prompts, particularly for AI art applications. This node is capable of detecting the primary language of the input text, translating Chinese text to English, and generating text prompts based on predefined grammar rules. It leverages advanced language models and tokenizers to ensure accurate and contextually appropriate translations. The node is particularly useful for artists who work with multilingual text inputs and need to generate coherent and creative prompts for their AI art projects. By automating the translation and prompt generation process, ChinesePrompt_Mix helps streamline the workflow and enhances the creative potential of AI art.
This parameter accepts a string input, which can be multiline. It is the primary text that you want to translate and generate prompts from. The text can contain both Chinese and English characters, and the node will automatically detect the primary language. The default value is an empty string, and dynamic prompts are not enabled for this parameter.
This parameter is a toggle with options "on" and "off". When set to "on", the node will generate text prompts based on the input text. If set to "off", the node will only translate the text without generating additional prompts. The default value is "off".
This output parameter provides the generated text prompts. If the generation parameter is set to "on", the output will include the longest line from the generated prompts. If the generation is "off", it will simply return the translated text. The output is designed to be used directly in AI art applications, providing a seamless integration into your creative workflow.
© Copyright 2024 RunComfy. All Rights Reserved.