ComfyUI Extension: LoRA Tag Loader for ComfyUI

Authored by badjeff

Created

Updated

61 stars

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

Custom Nodes (1)

README

LoRA Tag Loader for ComfyUI

A <a href="https://github.com/comfyanonymous/ComfyUI" >ComfyUI</a> 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.

<img src="https://github.com/badjeff/comfyui_lora_tag_loader/blob/master/workflows/workflow_sample.png" width="720">

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: <a href="https://github.com/cloneofsimo/lora#what-happens-to-text-encoder-lora-and-unet-lora">What happens to Text Encoder LoRA and Unet LoRA?</a>]

Install:

To install, drop the "comfyui_lora_tag_loader" folder into the "...\ComfyUI\ComfyUI\custom_nodes" directory and restart UI.