comfyui_lora_tag_loader

comfyui_lora_tag_loader
★ 105

LoRA标签模型加载标签解析ComfyUI节点
在ComfyUI中解析文本中的LoRA标签并将对应权重加载到checkpoint模型,自动化应用不同风格与权重组合。
💡 自动从文本读取LoRA标签并注入到模型checkpoint中
🍴 17 Forks💻 Python🔄 2024-05-22
📦 网盘链接待填入
📄 README

LoRA Tag Loader for ComfyUI

=======

A ComfyUI custom node to read LoRA tag(s) from text and load it into checkpoint model.

Examples:

The custom node shall extract “_<lora:CroissantStyle:0.8>_” from positive prompt and output a merged checkpoint model to sampler. The lora tag(s) shall be stripped from output STRING, which can be forwarded to CLIP Text Encoder.

One More Thing:

Adding an extra weight shall being passed as the equivalent of strength_clip in Lora Loader.

Giving a “_<lora:CroissantStyle:0.8:0.7>_” shall patch the unet with 0.8 and patch the text encoder with 0.7.

[Ref: What happens to Text Encoder LoRA and Unet LoRA?]

Install:

To install, drop the “_comfyui_lora_tag_loader_” folder into the “_…\ComfyUI\ComfyUI\custom_nodes_” directory and restart UI.