AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
142.6k stars 26.9k forks source link

[Feature Request]: Only explicit specification of embeddings is allowed, like <embedding:badhandv5> #14892

Open leejet opened 9 months ago

leejet commented 9 months ago

Is there an existing issue for this?

What would your feature do ?

I often come across amazing images shared by others on the internet. However, when attempting to replicate their results using the corresponding prompts they share with sd-webui, I often encounter failures. This is because they use embeddings, and I cannot determine exactly which embeddings they used. Despite their prompts containing many embeddings, they may only have a subset of embeddings locally, resulting in only a portion of the embeddings actually taking effect. What's more frustrating is that, for example, if the prompt includes both badhandv5 and baddream embeddings, but the user only has badhandv5.pt locally, only badhandv5 is effective, and baddream is treated as a regular prompt, split into "bad" and "dream" by the BPE algorithm. If I have both badhandv5.pt and baddream.pt locally, I must rename my baddream.pt to reproduce their results. The root cause of all this is the mixture of embeddings and regular prompts. If only explicit specification of embeddings is allowed, like <embedding:badhandv5>, it would solve this issue.

Proposed workflow

  1. Only explicit specification of embeddings is allowed, like <embedding:badhandv5>.

Additional information

No response

leohu1 commented 8 months ago

I like this idea. I think it's very useful.