This change allows Lists of Prompts to be processed. #818
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This change allows lists of prompts to be processed. The list can be typed/pasted into a textbox or loaded from a text file (which populated the textbox). The existing "Image Count" slider allows the list to be processed multiple times. Set it to 10 and run it against 9 prompts, and you'll get 90 images.
I also added an option under advanced to allow the seed to be kept the same while processing the list or to be iterated. If the option is disabled, we still iterate, but only after processing the whole list. This is useful if you want a list of prompts run against the same seed, such as when trying minor changes to a prompt.
In the future, it'd be nice to parse arguments, so that each prompt could specify sampling steps, diffuser, etc, similar to what the log writes out. (Size would be nice as well, but that would get messy with grid generation).
I tried to keep the change as clean as possible. I did have to refactor process_images to accept multiple prompts, which seemed better than making a second version that had to be maintained. I also ignore the multi-prompt setting, as that would get complicated, quickly, and also because in general, I imagine prompt lists to be used for things that are a little too complicated for the two types of multi-prompt.
Thanks, and thanks for all the work in maintaining all this!