Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This change allows Lists of Prompts to be processed. #818

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

TinyBeeman
Copy link
Contributor

Prompt List

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!

@TingTingin
Copy link
Contributor

Looks really good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants