The plug-in is designed to automatically save the association between the LoRA model and Trigger words to a Local JSON file so that when the LoRA model is loaded, the associated trigger words can be automatically loaded via the node 'LoRA Trigger Local' without manual input.
Custom Nodes (0)
README
ComfyUI-LoRA-Assistant
Introduction 简介
The plug-in is designed to automatically save the association between the LoRA model and Trigger words to a Local JSON file so that when the LoRA model is loaded, the associated trigger words can be automatically loaded via the node "LoRA Trigger Local" without manual input.
You can preview the image associated with LoRA by this list (provided that the ComfyUI_Custom_Nodes_AlekPet plugin is installed). When you select a PNG image, the 'lora_name' will be updated synchronously. These images should be set to the names displayed in the list and placed in the 'input' folder.
When 'trigger_word' is not empty, whether it is set to the trigger word of this lora so that the trigger word is loaded automatically later.After saving, you can still modify the LoRA file name, which does not affect the association with the trigger word.
Manually set the trigger word. If it is empty, the last saved trigger word is automatically loaded.
手动设置触发词。如果为空,则自动加载上次保存的触发词。
positive_prompt
The positive prompt other than the trigger word, if it is not empty, is automatically concated with the trigger word to form the final text output.
除触发词外的正面提示词,若它不为空,则将自动与触发词拼接成最后的文本输出内容。
Todo 后续开发计划
[ ] Automatically sync LoRA information from LibLib. 自动从LibLib中同步LoRA信息。
[x] Preview the images associated with LoRA. 预览LoRA关联的图片。
[x] Save the trigger word set by the user, and realize the automatic reading of the trigger word when using LoRA in the future. 保存用户设置的触发词,以后使用LoRA时实现自动读取触发词。
Acknowledgments 致谢
Thanks to the LoadLoraWithTags plugin author, I learned some of its code logic when developing this plugin.
感谢LoadLoraWithTags插件作者,我在开发本插件时借鉴了它的部分代码逻辑:
LoadLoraWithTags
Submit an issue if you have a good suggestion 如果你有好的建议,可提交issue