randomize weighting? proceedural weighting? #16159
Replies: 3 comments 5 replies
-
I'm guessing they won't want to complicate the core prompt syntax for this (it's already overly complicated to parse), but take a look at sd-dynamic-prompts (https://github.com/adieyal/sd-dynamic-prompts). This seems right up its alley. I think you could do something like "(duke nukem:{0.75|0.8|0.85|0.9|0.95|1|1.05|1.1|1.15|1.2|1.25})". By default that should choose a random weight from the list, and the "combinatoric prompt" feature would let you take that and generate every combination, if you want to batch generate a prompt with a series of weights to see how they vary. (That extension also has more complex prompt generation that might be able to do this programmatically, but I haven't used that.) |
Beta Was this translation helpful? Give feedback.
-
Some further consideration; if we don't want to mess with syntax, why not just have something like another drop down tab on the side, but using a keyword set like Sine_wave or RNGesus to get pulled on the back end and sorted through like an extension if not a base feature? |
Beta Was this translation helpful? Give feedback.
-
first you need to understand that
in the web you are we already support changing of prompt weights in the middle of generation by default network weights needs to handled by a completely different system
|
Beta Was this translation helpful? Give feedback.
-
I posted something similar in the forge ui directory but I might as well put it here as well. I'd like to add a random number range to weight calculations in my prompts directly, even just a rand(-6,6) with decimal notation options if included in the prompt (-6.00,6.00) etc.
While I was thinking about this, why not add a feature/extension to do weights in a procedural fashion like, taking batch number +/- 1 etc = weight, so like ProW(starting weight, +/-number, min, max) and an option to reverse the +/- on hitting min/max, or return to starting weight/repeat/end.
This would add a hell of a lot of Lycoris functionality on top of everything else you could do with per batch generation without needing stuff like AnimateDiff or other batch methods that are kinda complicated if more granularly controlable like with wildcards etc.
Beta Was this translation helpful? Give feedback.
All reactions