mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-11-05 00:17:25 +00:00
[GH-ISSUE #14] [Feature Request] Only autocomplete if a certain model is used #11
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
low priority
low priority
pull-request
question
waiting for feedback
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DominikDoom/a1111-sd-webui-tagcomplete#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @TetteDev on GitHub (Oct 15, 2022).
Original GitHub issue: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/issues/14
Originally assigned to: @DominikDoom on GitHub.
As the title states, I assume this script is only meant to be used with a certain stable diffusion model, so it would probably be good to add support for via the config file, specifying whitelisted models (aka models that accept these kind of tags) and only autocomplete IF one of these models are being used.
If due to my ignorance, or lack of knowledge this is supposed to be used with all sorts of models, then you can close this issue :)
@DominikDoom commented on GitHub (Oct 15, 2022):
Some models definitely benefit more from it, but since a lot of tags are pretty general, they can also be used in the standard 1.4 model with decent results (for example tags about body parts & poses, hair styles, image descriptors like landscape, city, etc.)
I do however agree that you sometimes don't want the autocompletion, so I'm currently working on adding a switch in the UI to disable it without needing to restart.
@TetteDev commented on GitHub (Oct 15, 2022):
Sure that is a solution, but I think it'd be nice also for it to be able and do it my way too
some pseudo code
And then just call at the top of autocomplete, checking if acConfig.whitelistedModels (an additional property added to config.json) includes said model hash, and if it does, allow the autocomplete to happen etc
If I knew actually knew javascript i'd write up some proper code that actually works
Just my 2 cents, have a good day :)
@TetteDev commented on GitHub (Oct 15, 2022):
Now that I think about it, your solution is probably the better way to go about it.
What I suggested seems a bit overly complicated
@DominikDoom commented on GitHub (Oct 15, 2022):
Well, it definitely wouldn't hurt to have the option, I'm just not sure how I want to include it in the config.
The popular custom models are nearly all trained with either Danbooru or e621, so it might actually be more sensible to have a blacklist. Especially since it would be a huge pain for users to add dozens of Dreambooth models based on those custom models to a whitelist.
Maybe also a mix of both, so that the blacklist just turns the checkbox off on loading those models, but you still have the option to turn it back on without changing the config.
@TetteDev commented on GitHub (Oct 15, 2022):
Yeah that seems like a good solution, if you decide to also go that route instead of having just one permanently visible toggle switch
What I did for myself was to implement all this (managed in the end 😄), working purely on a whitelist as I don't have many models that want those specific tags
@ice051128 commented on GitHub (Dec 3, 2022):
Do u have a download link for the solution?