ComfyUI  >  Nodes  >  ComfyUI-JNodes >  Lora Extractor

ComfyUI Node: Lora Extractor

Class Name

JNodes_LoraExtractor

Category
None
Author
JaredTherriault (Account age: 3626 days)
Extension
ComfyUI-JNodes
Latest Updated
8/11/2024
Github Stars
0.0K

How to Install ComfyUI-JNodes

Install this extension via the ComfyUI Manager by searching for  ComfyUI-JNodes
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-JNodes 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

Lora Extractor Description

Parse and extract LoRA tags from text strings efficiently for AI artists using regular expressions.

Lora Extractor:

The JNodes_LoraExtractor node is designed to parse and extract specific text patterns from a given string, particularly focusing on identifying and isolating LoRA (Low-Rank Adaptation) tags. This node is highly beneficial for AI artists who work with text-based prompts that include LoRA tags, as it simplifies the process of extracting these tags for further processing or analysis. By using regular expressions, the node efficiently identifies text enclosed in angle brackets (< and >) and filters out those containing the keyword "lora". This functionality is crucial for managing and manipulating LoRA tags within larger text prompts, ensuring that only relevant tags are extracted and formatted for subsequent use.

Lora Extractor Input Parameters:

string

The string parameter is the input text from which the node will extract LoRA tags. This parameter accepts a multiline string, allowing you to input extensive text prompts that may contain multiple LoRA tags. The function of this parameter is to provide the raw text data that the node will process. The impact of this parameter on the node's execution is significant, as the accuracy and completeness of the extracted LoRA tags depend on the content of the input string. There are no minimum or maximum values for this parameter, but it defaults to an empty string if not provided.

Lora Extractor Output Parameters:

STRING

The output parameter STRING is a single string that contains all the extracted LoRA tags from the input text, each on a new line. This output is crucial as it provides a clean and organized list of LoRA tags that can be easily used for further processing or analysis. The interpretation of this output is straightforward: each line represents a LoRA tag that was found and extracted from the input string, ensuring that you have a clear and concise list of relevant tags.

Lora Extractor Usage Tips:

  • Ensure that your input string contains LoRA tags enclosed in angle brackets (< and >) to maximize the effectiveness of the extraction process.
  • Use this node to preprocess text prompts before feeding them into other nodes or models that require specific LoRA tags, streamlining your workflow.

Lora Extractor Common Errors and Solutions:

No LoRA tags found

  • Explanation: The input string does not contain any text enclosed in angle brackets or does not include the keyword "lora".
  • Solution: Verify that your input string contains correctly formatted LoRA tags, such as <lora:example>.

Invalid input type

  • Explanation: The input provided is not a string.
  • Solution: Ensure that the input parameter is a valid string. If you are passing data from another node, confirm that it outputs a string type.

Lora Extractor Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-JNodes
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.