Sign In

MultiLora Loader for ComfyUI

21
264
2
Updated: Oct 5, 2024
toolcomfyui
Type
Other
Stats
264
Reviews
Published
Aug 23, 2023
Base Model
Other
Hash
AutoV2
2A02541358
default creator card background decoration
bucketbox's Avatar
bucketbox

This pack has two nodes, MultiLora Loader and Lora Text Extracter. For detailed instructions & diagrams see the github repo because I don't feel like typing everything again,

https://github.com/skfoo/ComfyUI-Coziness

Installing

Put the MultiLoraLoader.py file into ComfyUI's custom_nodes directory. You'll find MultiLoraLoader in the 'loaders' category, and Lora Text Extractor in the 'utils' category.

MultiLora Loader

You use MultiLora Loader in place of ComfyUI's existing lora nodes, but to specify the loras and weights you type text in a text box, one lora per line. Each line is the file name of the lora followed by a colon, and a number indicating the weight to use.

Lora Text Extractor

Lora Text Extractor let's you write a prompt with loras specified like Automatic1111. It takes text input and filters it into two text outputs; one is the text with lora information removed which you can feed to CLIP Text Encode, and the other text output has the lora information which you feed into MultiLora Loader.

To connect to those nodes (CLIP Text Encode and MultiLora Loader), you have to convert their text boxes into inputs by right-clicking them and choosing that menu option.

What's next for this?

Nothing! Probably. These nodes are really handy so I wanted to share it. I'm surprised that nobody's made these nodes already.