[New Extension] Continuous Prompt Interpolation #7254
Replies: 4 comments 9 replies
-
What samplers do you feel work best with this? Thank you, this is 🤯! cc: @Ehplodor (you requested this feature a while ago) |
Beta Was this translation helpful? Give feedback.
-
@ljleb What would be a summary of this technique(s) that enough normal people will understand? Enough people get prompt editing / alternating words. This technique is a prompt travel, like https://github.com/Kahsolt/stable-diffusion-webui-prompt-travel but those videos only use the final finished images as frames. This is for inbetween the sampling process. It also serves as a useful syntax for just changing the prompt each step. (if you just want to use it for improved prompt editing syntax) |
Beta Was this translation helpful? Give feedback.
-
Hey, i tested your extension for a bit, seem nice and has it's uses, especially if you need to nudge subject to specific look, not entirely, but helps for sure. One thing though, it seem to break prompts with wildcards, which i use a lot. |
Beta Was this translation helpful? Give feedback.
-
I wish there was the possibility to alternate multiple keywords. Currently it is only possible with [oil painting|acrylic painting]. I wish I could do multiple keywords which would then alternate until the final step. I could use the first example syntax but its a bit of a hassle to enumerate everything myself I was quite fascinated with this extension when I also used the script that lets you see intermediate steps. Im still trying to find the best setting of percentage / steps. Sometimes it doesnt work that well because the classifier free guidance has a mind of its own and decides what the end result will be. But really good work! |
Beta Was this translation helpful? Give feedback.
-
We built an extension that allows to interpolate continuously between different elements in a prompt. Specifically, the extension allows to interpolate between the embeddings of different prompts, and attention values.
For example, it is possible to sample linearly from
cat
todog
using[cat:dog: -1, 28]
or simply[cat:dog: , ]
assuming 30 steps.It is also possible to interpolate attention linearly, i.e. start sampling
(cat:1)
and end with(cat:2)
using(cat:1,2)
.https://github.com/ljleb/prompt-fusion-extension
I'm pasting the readme.md here to facilitate access 😄
Examples
These examples were generated using 30 sampler steps.
1. Influencing the beginning of the sampling process
Interpolate linearly (the default) from
lion
(step 0) tobird
(step 7) togirl
(step 10) and stay atgirl
for the rest of the sampling steps:2. Influencing the middle of the sampling process
Interpolate using an embeddings bezier curve from
fireball monster
(step 0) todragon monster
(step 30 * 0.4 = step 12), while usingseawater monster
as an intermediate control point to steer the curve away during interpolation and get creative results:Features
Docs
For more information on the syntax and other features of the repo, check out the wiki.
Beta Was this translation helpful? Give feedback.
All reactions