Prompt Batch Selector (by line) v1.2.1:
The PromptBatchSelector node is designed to enhance your creative workflow by allowing you to dynamically select and combine text prompts for conditioning AI models. This node is particularly useful when you want to apply different prompts to different batches of data, enabling more nuanced and varied outputs. By leveraging a common prompt and a list of specific prompts, the node intelligently combines them based on the batch index you specify. This functionality is crucial for artists and developers who wish to experiment with multiple scenarios or themes in a single run, thereby saving time and effort while ensuring consistency and quality in the generated outputs.
Prompt Batch Selector (by line) v1.2.1 Input Parameters:
clip
The clip parameter represents the CLIP model instance that will be used for encoding the text prompts. This parameter is essential as it determines the model context in which the prompts will be processed, directly impacting the quality and relevance of the output.
batch_index
The batch_index parameter is an integer that specifies which line from the prompts_by_line should be selected and combined with the common_prompt. It starts from 1, with a default value of 1, and must be at least 1. This parameter allows you to target specific prompts for different batches, enabling precise control over the conditioning process.
common_prompt
The common_prompt parameter is a multiline string that serves as the base prompt applied to all batches. It has a default value of "beautiful scenery, masterpiece, best quality". This parameter provides a consistent thematic or stylistic foundation that is combined with specific prompts to create a cohesive output.
prompts_by_line
The prompts_by_line parameter is a multiline string containing different prompts, each on a new line. The default value includes prompts like "a happy person smiling", "a sad person crying", and "an angry person shouting". This parameter allows you to define a variety of specific scenarios or themes that can be selectively applied to different batches, enhancing the diversity of the generated content.
Prompt Batch Selector (by line) v1.2.1 Output Parameters:
CONDITIONING
The CONDITIONING output is the result of the combined prompts processed through the CLIP model. This output is crucial as it represents the encoded text that will condition the AI model, influencing the final generated content. The quality and relevance of this output are directly tied to the input prompts and the selected batch index.
Prompt Batch Selector (by line) v1.2.1 Usage Tips:
- Ensure that your
batch_indexis within the range of the number of lines inprompts_by_lineto avoid out-of-range errors and ensure the correct prompt is selected. - Use a meaningful
common_promptthat aligns with your overall artistic vision, as it will be combined with specific prompts to guide the AI model's output. - Experiment with different combinations of
common_promptandprompts_by_lineto explore a wide range of creative possibilities and discover unique outputs.
Prompt Batch Selector (by line) v1.2.1 Common Errors and Solutions:
[ Prompt Batch Selector (by line) v1.2.1] WARNING: batch_index out of range.
- Explanation: This error occurs when the
batch_indexspecified is greater than the number of lines available inprompts_by_line. - Solution: Verify that your
batch_indexis within the valid range by ensuring it does not exceed the number of lines inprompts_by_line. Adjust thebatch_indexaccordingly to select a valid prompt.
