ComfyUI > Nodes > comfyui-adaptiveprompts > Normalize Lora Tags 🟰

ComfyUI Node: Normalize Lora Tags 🟰

Class Name

NormalizeLoraTags

Category
adaptiveprompts/utils
Author
Alectriciti (Account age: 5005days)
Extension
comfyui-adaptiveprompts
Latest Updated
2025-11-05
Github Stars
0.05K

How to Install comfyui-adaptiveprompts

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

Run ComfyUI Online

Normalize Lora Tags 🟰 Description

Manage and adjust LoRA tag weights with precision and flexibility using different modes of operation.

Normalize Lora Tags 🟰:

The NormalizeLoraTags node is designed to manage and adjust <lora:name:weight> tags within a given string, ensuring that these tags are properly normalized, compressed, or limited according to specified parameters. This node is particularly useful for AI artists who work with LoRA (Low-Rank Adaptation) models and need to maintain consistent and balanced tag weights in their prompts. The node parses tags with float weights, leaving those with non-float weights unchanged, and completely ignores tags with zero weight. It offers different modes of operation, such as NORMALIZE, LIMITER, SOFT_COMPRESS, and HARD_COMPRESS, each providing a unique method of handling the tag weights. The node also allows you to specify which tags to process based on their weight being positive, negative, or both. The output weights are rounded to three decimal places, ensuring precision and consistency in the results.

Normalize Lora Tags 🟰 Input Parameters:

string

The string parameter is the input text containing the <lora:name:weight> tags that you want to process. This parameter is crucial as it provides the raw data that the node will parse and adjust according to the specified mode and bounds. The string should be formatted correctly with tags that include a name and a weight, where the weight is a float value. There are no specific minimum or maximum values for this parameter, but it should be a valid string containing the tags you wish to normalize.

bounds

The bounds parameter determines which tags will be affected by the normalization process. It can take one of three values: POSITIVE, NEGATIVE, or BOTH. This parameter is important because it allows you to selectively process tags based on their weight. For example, choosing POSITIVE will only affect tags with positive weights, while NEGATIVE will target those with negative weights. BOTH will process all tags regardless of their weight sign. This flexibility helps in fine-tuning the tag normalization process to meet specific artistic needs.

mode

The mode parameter specifies the method of processing the tags. It can be set to NORMALIZE, LIMITER, SOFT_COMPRESS, or HARD_COMPRESS. Each mode offers a different approach to handling the tag weights. NORMALIZE ensures that the total magnitude of the selected tags equals the target weight, while LIMITER only normalizes when the total magnitude exceeds the target weight. SOFT_COMPRESS and HARD_COMPRESS provide varying levels of compression, with SOFT_COMPRESS being a gentle reduction and HARD_COMPRESS offering a stronger compression. This parameter is essential for controlling how aggressively the tag weights are adjusted.

Normalize Lora Tags 🟰 Output Parameters:

normalized_string

The normalized_string is the output parameter that contains the processed string with the <lora:name:weight> tags adjusted according to the specified mode and bounds. This output is crucial as it provides the final result of the normalization process, with weights rounded to three decimal places for precision. The normalized_string allows you to use the adjusted tags in your AI art projects, ensuring that the tag weights are balanced and consistent with your artistic goals.

Normalize Lora Tags 🟰 Usage Tips:

  • To ensure that only specific tags are processed, carefully choose the bounds parameter based on whether you want to affect positive, negative, or all tags.
  • Experiment with different mode settings to find the best balance for your project. For subtle adjustments, SOFT_COMPRESS might be ideal, while HARD_COMPRESS is better for more significant weight reductions.
  • Always check the format of your input string to ensure that the tags are correctly structured with float weights, as this will affect the node's ability to parse and process them.

Normalize Lora Tags 🟰 Common Errors and Solutions:

Invalid tag format

  • Explanation: The input string contains tags that are not formatted correctly, preventing the node from parsing them.
  • Solution: Ensure that all tags in the input string follow the <lora:name:weight> format, with weight being a float value.

Zero-weight tags ignored

  • Explanation: Tags with a weight of zero are ignored by the node and do not appear in the output.
  • Solution: If you want zero-weight tags to be included, adjust their weights to a non-zero value before processing.

Non-float weight tags unchanged

  • Explanation: Tags with non-float weights are left unchanged by the node.
  • Solution: Convert any non-float weights to float values to ensure they are processed by the node.

Normalize Lora Tags 🟰 Related Nodes

Go back to the extension to check out more related nodes.
comfyui-adaptiveprompts
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.