I personally don't use Lora that much, but it is a very important technique in image generation AI.
Especially with newer models, there are few models where the Unet part has been fine-tuned, so the importance of Lora is increasing.
In ComfyUI, unlike webUIs like A1111, models are merged using nodes, so general Lora syntax is unnecessary.
It's like "<lora:Harem Heroes Model - Illustrious_epoch_20:0.7>".
However, if you don't put the trigger words set by the Lora into the prompt, the Lora's effect will not be properly reflected.
Since Lora trigger words differ for each model, it's a hassle to memorize them one by one.
That's why I only used Loras that didn't require trigger words. These are things like slider Loras or concept Loras. These are easy because you can expect results just by adjusting the weight.
In ComfyUI, the following "ComfyUI-Lora-Manager" is basically thestandard choicefor custom nodes related to Lora.
I think this custom node isa must-have for Lora users because it allows for various adjustments when using Loras.
What I felt after trying it out was how amazing this custom node is.
After installation, when you launch ComfyUI, clicking the"L" partin the top right of the screen will open a new browser window.
Then, it transitions to a screen where you can select the "Language Selection".
After that, it has a user-friendly design that explains each tab on a tutorial screen.
Executing "Fetch metadata from Civitai" allows you to download data including preview images.
It becomes possible to view a list of the Loras you have with preview images as shown below.
It is very wonderful that you can search and see preview images in the list section in the LoraLoader node as shown below.
You can press "Enter" to select, and you can set multiple ones.
It feels like you can output the trigger words corresponding to each model from the trigger words output.
It's amazing.

Even so, the reason I tried making my own was becausemy personal use case was limitedand I added the task ofimproving the trigger word detection capability.
Lora trigger words can be retrieved using the following methods:
1. Information on themodel card on sites
like Civitai, 2. Metadatainside the safetensors file
, 3. Data such asjson attached to the safetensors
Offline retrieval corresponds to method 2, but unfortunately,there are quite a few that don't have metadata registered.
Therefore, using both 1 and 2 is the way to retrieve trigger words without omissions.
ComfyUI Lora Manager specializes in 1, and it accesses civarchive in addition to civitai to retrieve trigger words.
This means it can even retrieve trigger words for models banned from civitai, which covers a significant portion.
However,it cannot handle models you made yourself or models obtained from places other than civitai, so the importance of metadata remains as a supplement to that.
A further problem is that there are models published only on Huggingface.
nashikone/iroiroLoRA · Hugging Face
This Huggingface repository'siroiroLoRApublishes many Loras for various image generation models. However, when I analyzed the Lora models published here,the trigger words were not registered in the metadata.
Therefore, with ComfyUI-Lora-Manager, trigger words cannot be detected for these models.
For the custom node I created this time, I have adjusted it so that it can separately handle models included in iroiroLoRA.
The challenge lies with Concept Lora. Since Slider Lora does not require trigger words, I have set it not to output them, but for Concept Lora, there is a situation where it incorrectly outputs them in some cases. Although this part is incomplete, it is difficult to fix all of them, so I think I will handle them as I notice them.
Since this created repository is based on the ComfyUI native Lora Loader (model only), the supported Lora models are those that are natively supported by ComfyUI.
I wanted to display preview images when selecting from a list like in ComfyUI Lora Manager, but it didn't go well and remains unimplemented; however, I created a mechanism where you can view the preview if the selected Lora is registered on civarchive or civitai.
Introduction to the custom node
It is a node that looks like the following.
It only supports one model.
For example, in the case of the "AddMicroDtailes" model below, it is a model that does not require trigger words, but when you press "Load Trigger Words," it determines it as follows. ComfyUI Lora Manager saves basic metadata when ComfyUI starts, but I couldn't adjust it to that extent, so the loading process is necessary. Therefore, a slight time lag occurs.
In the case of the "AddMicroDtailes" model, the Trigger words output will be "empty." The same applies to Slider Lora.
When you press "Show Model Card," the following will appear. I have made it so that the display appears even if you do not press "Load Model Card."
In the case of models uploaded only to huggingface as mentioned earlier, this browse function is not supported, but trigger words can be extracted without any problems.
By executing the Queue without pressing things like "Load Trigger Words," you can output the trigger words of the loaded Lora model.
In addition to the model only version presented, there is also a node that includes the CLIP input/output of the regular version, so both are supported.
Although the Anima model is still in development, it already gives the impression of surpassing Rouwei Gemma, and I have high expectations for the future.