ljleb/prompt-fusion-extension

New modifier: repeat

SirVeggie opened this issue · 1 comments

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

  • Wouldn't be able to repeat different curves like bezier
  • pretty niche outside of hires repeat

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.

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!