TK Prompt Cards:
TKPromptCards is a versatile node designed to enhance your AI art creation process by managing and editing prompt cards. This node serves as a prompt card library editor, allowing you to seamlessly switch between local batch files and concatenate prompt cards with your current prompts. It offers dual output capabilities, providing both STRING and CONDITIONING outputs, and includes a third output for lora_syntax, which directly connects to the TK Batch LoRA Loader to load corresponding LoRA triggers. The node is equipped with a card library that supports both English and Chinese tags, making it a powerful tool for multilingual prompt management. Additionally, it can encode inputs directly into CONDITIONING using optional CLIP input, enhancing the flexibility and depth of your creative prompts. With TKPromptCards, you can efficiently manage and utilize a comprehensive library of prompt cards, streamlining your workflow and expanding your creative possibilities.
TK Prompt Cards Input Parameters:
positive
The positive parameter is a STRING input that represents the current prompt text. It can be filled automatically by selecting from batch files or the card library, or you can edit it directly. This parameter is crucial as it forms the basis of the prompt that will be processed and potentially encoded into CONDITIONING. There are no explicit minimum or maximum values, but it is recommended to keep the text concise and relevant to your creative goals.
clip
The clip parameter is an optional input that, when provided, allows the node to encode the positive text into CONDITIONING. This enhances the prompt by leveraging CLIP's capabilities to understand and process the text in a more nuanced manner. If not provided, the node will default to a simple STRING output.
opt_text
The opt_text parameter is an optional STRING input that allows you to append additional text to the positive prompt. This can be useful for adding context or further details to your prompt. Like the positive parameter, there are no strict limits, but clarity and relevance should be maintained.
lora_syntax
The lora_syntax parameter is an optional STRING input that specifies the syntax for LoRA triggers. This is directly connected to the TK Batch LoRA Loader, enabling the automatic loading of corresponding LoRA models based on the specified syntax. This parameter is particularly useful for advanced users who wish to integrate specific LoRA models into their workflow.
prompt_pieces
The prompt_pieces parameter is a hidden STRING input that supports multiline text. It is used internally to manage and concatenate different pieces of prompts from the card library. This parameter is not typically modified directly by users but plays a crucial role in the node's functionality.
TK Prompt Cards Output Parameters:
STRING
The STRING output provides the final concatenated prompt text, combining the positive and opt_text inputs. This output is essential for users who wish to see the complete prompt text that will be used in their AI art generation process.
CONDITIONING
The CONDITIONING output is generated when the clip input is provided. It represents the encoded version of the prompt text, processed through CLIP to enhance its interpretability and effectiveness in guiding AI models. This output is valuable for users seeking more sophisticated prompt conditioning.
lora_syntax
The lora_syntax output is a STRING that contains the syntax for LoRA triggers. This output is directly used by the TK Batch LoRA Loader to load the appropriate LoRA models, facilitating seamless integration of LoRA capabilities into your workflow.
TK Prompt Cards Usage Tips:
- Utilize the
positiveparameter to define the core of your prompt, and useopt_textto add additional context or details as needed. - If you have access to a CLIP model, provide it through the
clipparameter to take advantage of enhanced prompt conditioning. - Explore the card library to quickly fill the
positiveparameter with pre-defined prompts, saving time and effort in prompt creation. - Use the
lora_syntaxparameter to specify and manage LoRA triggers, enabling advanced model integration and customization.
TK Prompt Cards Common Errors and Solutions:
CLIP 编码失败(退化为纯 STRING)
- Explanation: This error occurs when the CLIP encoding process fails, resulting in a fallback to a simple STRING output.
- Solution: Ensure that the
clipinput is correctly configured and that the CLIP model is accessible and functioning properly. Check for any issues with the input text that might cause encoding failures.
卡片库读取失败(按空库继续)
- Explanation: This error indicates a failure in reading the card library, causing the node to proceed with an empty library.
- Solution: Verify that the card library file exists and is correctly formatted. Check for any file access permissions or path issues that might prevent the library from being read.
