unwdef-nodes-comfyui

unwdef-nodes-comfyui
★ 5

LoRA管理触发词模型集成ComfyUI节点
连接model与clip,将已应用的LoRA、权重与触发词文本化输出,便于KSampler接入与提示词拼接
💡 在管线中输出已应用LoRA与触发词以便拼接提示词
🍴 8 Forks💻 Python🔄 2025-03-27
📦
网盘下载
复制链接后前往夸克网盘下载
https://pan.quark.cn/s/c1eafc754fbb
nodes_lora
node_random_text_from_multiline
nodes_text
📄 README

unwdef Custom Nodes for ComfyUI

This is a work in progress repo.

Randomize LoRAs Node

The Randomize LoRAs node randomly loads LoRAs based on a predefined selection with also randomized weights. This enables users to experiment with different artistic effects on their generated images.

Note: The “Show Text” node is part of pythongosssss/ComfyUI-Custom-Scripts

There is also a “stack” version for working with other lora nodes with the stacking functionality such as Efficiency Nodes

How It Works

Connect the model and clip outputs from this node to your KSampler or other processing nodes. The output, chosen loras, provides a textual representation detailing which LoRAs and corresponding weights were applied during the generation.

You can also provide the trigger words for each lora. They will be outputted as a formatted text separated by commas. Useful for you to concatenate the trigger words into your prompts.

Configuration Fields

  • seed: Ensures reproducibility. Maintain the same seed for consistent results across generations. _Note: Keep the same selected loras for this to work._
  • max_random: Limits the maximum number of LoRAs to apply. Even if you select up to 10, you can choose to apply fewer.
  • lora_x: Specifies the LoRA file to use.
  • min_str_x and max_str_x: Defines the minimum and maximum strengths for each LoRA, allowing for a range of intensities.
  • trigger_words_x: The trigger words for the selected lora.
  • Random Text from Multiline Node

    Will output one (or multiple) lines from a multiline text component.

    Text Multiline with Variables

    Will replace instances of !var_x in your text with the contents of the var_x inputs.

    Installation

    You can use the ComfyUI-Manager. Search for “unwdef” or “unwdef-nodes”.

    Or you can install it manually:

  • Open your terminal and navigate to your ComfyUI/custom_nodes directory.
  • Clone the repository using:
  • “`

    git clone https://github.com/unwdef/unwdef-nodes-comfyui.git

    “`

  • Restart ComfyUI to apply the changes.
  • Uninstallation

    To remove the custom node:

  • Delete the unwdef-nodes-comfyui directory from ComfyUI/custom_nodes.
  • Restart ComfyUI to apply the changes.
  • Updates

    To update the node:

  • Navigate to ComfyUI/custom_nodes/unwdef-nodes-comfyui in your terminal.
  • Run the following command: git pull
  • Restart ComfyUI to apply the changes.