-
Notifications
You must be signed in to change notification settings - Fork 27.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Extra network description files #8366
Conversation
Related: #7953 |
A lot of people are on a similar path here. What I would love to see is an extension that creates a metadata file next to each model. That we could store the:
Then when you mouse over the model you would see a description. For example, if I clicked on a Mazda Miata LoRA, rather than just adding it would put The metadata files should be universal, such as JSON or XML. Easy to edit manually. But there should also be an edit icon in the UI on the model to edit the fields. Additionally, it would be nice to have it scrape starting metadata from sites like Civitai to pull the initial values, which could then be modified. I find the default weight of 1 and recommended trigger words are almost never enough on their own to get a good result. I have been manually adding every single LoRA, TI, and Hyper to my Styles CSV list to have it fill in the best weight, and trigger phrase combo. This works, but is annoying as it requires me to double my efforts. It would be great to be able to specify the values that I want for each model. |
What's the reason for using @lru_cache for texts? Wouldn't this make them not update after you add/edit the text file? |
remove LRU from #8366 because I don't know why it's there
Yep, it would, but I figured that's less of a problem than reading them from disk very often :) Thanks for the merge! 👍 |
Same, that's why I opened #8029.
I went with YAML (easiest to edit, and if you insist on using JSON, you can, because every JSON is also valid YAML)
My current fork also contains 2 scripts, Yes, sorry, Perl, and ugly code, because I mostly wrote it for my own use -- I can also write really pretty and readable Perl code too, I swear! :) |
I did this in here #7458 In a very bad way but hey, it works on my local atm. it sets the weight and adds to the positive prompt |
Extra network description files
remove LRU from AUTOMATIC1111#8366 because I don't know why it's there
This pull request adds support for description files for extra networks; for example, some LoRAs activate (better) with a given keyword, which may not be obvious from the LoRA's filename, so this allows for jotting notes down into a
.txt
(or.description.txt
) file next to the model file, following how preview PNGs work.Environment this was tested in
Screenshots or videos of your changes
The UI shows up to three lines of the file to begin with, and all of it when hovering over the description.
Default:
Hover:
No description (as before):