ljleb / prompt-fusion-extension

auto1111 webui extension for all sorts of prompt interpolations!
MIT License
259 stars 16 forks source link

New modifier: repeat #81

Open SirVeggie opened 5 months ago

SirVeggie commented 5 months ago

I've got a new idea I think would be pretty nice and shouldn't be too complex. While writing this issue I realized that repeating percentages is a bit ambiguous when normal and hires have different step counts.

For example [prompt 1:prompt 2:,1.0:repeat]. The idea is that after reaching the last specified time step 1.0, it will restart and do it again from the start. One of the use cases would be to repeat the same linear interpolation in hires fix without the need for duplication. In this case [prompt 1:prompt 2:,1.0:repeat] would be the same as [prompt 1:prompt 2:,1.0][prompt 1:prompt 2:1.0,2.0].

Downsides

No pressure implementing this since I could probably write a text preprocessor that will create a similar effect by copy pasting and modifying the numbers appropriately. Would be nice to have natively though.

ljleb commented 5 months ago

Thanks for the suggestion. We can allow to specify multiple keywords in the last :...] part of the prompt editing syntax.

I'm currently focusing on other projects like sd-mecha but I might come back to this in a while. PRs are welcome!