ComfyUI > Nodes > Mikey Nodes > Wildcard And Lora Syntax Processor (Mikey)

ComfyUI Node: Wildcard And Lora Syntax Processor (Mikey)

Class Name

WildcardAndLoraSyntaxProcessor

Category
Mikey/Lora
Author
bash-j (Account age: 4196days)
Extension
Mikey Nodes
Latest Updated
2024-06-15
Github Stars
0.08K

How to Install Mikey Nodes

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

Run ComfyUI Online

Wildcard And Lora Syntax Processor (Mikey) Description

Enhances text prompts with wildcard and LoRA syntax processing for dynamic and enriched AI-generated content.

Wildcard And Lora Syntax Processor (Mikey):

The WildcardAndLoraSyntaxProcessor node is designed to enhance your text prompts by integrating wildcard and LoRA (Low-Rank Adaptation) syntax processing. This node allows you to dynamically replace parts of your prompt with random selections from predefined lists (wildcards) and apply LoRA models to your text, which can significantly enrich the generated content. By combining these two powerful techniques, you can create more varied and complex prompts, leading to more diverse and interesting AI-generated art. The node processes the text to replace wildcard syntax with random choices and applies LoRA models based on the specified syntax, ensuring that your prompts are both dynamic and enriched with additional model capabilities.

Wildcard And Lora Syntax Processor (Mikey) Input Parameters:

prompt

This parameter is a multiline string input where you can enter the text prompt that you want to process. The prompt can include wildcard syntax in the format {option1|option2|option3} and LoRA syntax in the format <lora:filename:multiplier>. The wildcard syntax will be replaced with a random choice from the options provided, and the LoRA syntax will apply the specified LoRA model to the text. This allows for dynamic and varied prompt generation. There is no minimum or maximum length for the prompt, but it should be meaningful and relevant to your intended output.

seed

This parameter is an integer input that sets the seed for the random number generator used in processing the wildcard syntax. By setting a specific seed value, you can ensure that the random choices made during wildcard processing are reproducible. The default value is 0, and the valid range is from 0 to 0xffffffffffffffff (a very large number). Using different seed values will result in different random selections, adding variability to your prompts.

model

This parameter represents the AI model that will be used in conjunction with the LoRA syntax. It is typically a pre-trained model that you want to enhance with additional LoRA capabilities. The model parameter is essential for applying the LoRA modifications specified in the prompt.

clip

This parameter represents the CLIP (Contrastive Language-Image Pre-Training) model that will be used to process the text. The CLIP model is used to understand and encode the text prompt, and it is necessary for applying the LoRA modifications.

extra_pnginfo

This optional parameter is a dictionary that can contain additional metadata or information to be used during the processing of the prompt. It is used for search and replace operations within the text. If not provided, an empty dictionary is used by default.

prompt_

This optional parameter is another dictionary that can contain additional prompt-related data for search and replace operations. It is used to further customize the text processing. If not provided, an empty dictionary is used by default.

Wildcard And Lora Syntax Processor (Mikey) Output Parameters:

model

The output model is the AI model that has been enhanced with the specified LoRA modifications. This model can be used for further processing or generation tasks, and it incorporates the additional capabilities specified in the prompt.

clip

The output clip is the CLIP model that has been processed with the LoRA modifications. This model can be used to understand and encode the modified text prompt, and it is essential for generating the final output.

stripped_text

This output parameter is the text prompt with the LoRA syntax stripped out. It represents the cleaned-up version of the prompt after all LoRA modifications have been applied, making it suitable for further processing or analysis.

text

This output parameter is the original text prompt after all wildcard and LoRA syntax processing has been completed. It includes the final version of the prompt with all dynamic replacements and modifications applied.

Wildcard And Lora Syntax Processor (Mikey) Usage Tips:

  • Use meaningful and varied wildcard options in your prompt to maximize the diversity of the generated content.
  • Experiment with different seed values to explore a wide range of random selections and prompt variations.
  • Ensure that your LoRA filenames are correct and include the .safetensors extension if necessary to avoid file loading errors.
  • Combine wildcard and LoRA syntax creatively to generate complex and interesting prompts that can lead to unique AI-generated art.

Wildcard And Lora Syntax Processor (Mikey) Common Errors and Solutions:

FileNotFoundError: [Errno 2] No such file or directory: 'filename.safetensors'

  • Explanation: This error occurs when the specified LoRA file cannot be found in the directory.
  • Solution: Ensure that the LoRA filename is correct and includes the .safetensors extension. Verify that the file exists in the expected directory.

ValueError: could not convert string to float: 'multiplier'

  • Explanation: This error occurs when the LoRA multiplier specified in the prompt cannot be converted to a float.
  • Solution: Ensure that the multiplier value is a valid number. If the multiplier is not specified, it defaults to 1.0.

KeyError: 'prompt'

  • Explanation: This error occurs when the prompt parameter is not provided or is missing from the input.
  • Solution: Ensure that the prompt parameter is included in the input and contains valid text.

TypeError: 'NoneType' object is not iterable

  • Explanation: This error occurs when the extra_pnginfo or prompt_ parameter is not provided and defaults to None.
  • Solution: Ensure that extra_pnginfo and prompt_ parameters are provided as dictionaries, even if they are empty.

Wildcard And Lora Syntax Processor (Mikey) Related Nodes

Go back to the extension to check out more related nodes.
Mikey Nodes
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.