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

XY plot Prompt order #1607

Merged
merged 3 commits into from
Oct 4, 2022
Merged

Conversation

DoTheSneedful
Copy link
Contributor

Add an option to X/Y plot script that allows user to compare different prompt orders.

It takes words from your prompt and replaces them using each permutation of the coma separated list you give under X/Y values in the interface. Those tokens are expected to be in the prompt string. This does grow factorially so obviously adding 10 tokens to reorder wont be pleasant, but this may be useful for seeing the difference the order of words in your prompt can make in the result.

image

Prompt: photorealistic, cute, a photograph, of a (large) cat, jumping, with small ears, (orange:0.6)
X values: (large), jumping, small
Y values: (orange:0.6), cute

For example in this prompt, along the X-axis the prompts will be:
photorealistic, (orange:0.6), a photograph, of a (large) cat, jumping, with small ears, cute
photorealistic, (orange:0.6), a photograph, of a (large) cat, small, with jumping ears, cute
photorealistic, (orange:0.6), a photograph, of a jumping cat, (large), with small ears, cute
etc.

The next one down along the X-axis would be have the positions of (orange:0.6) and cute swapped.
photorealistic, cute, a photograph, of a (large) cat, jumping, with small ears, (orange:0.6)
etc.

@AUTOMATIC1111
Copy link
Owner

type(list())

@AUTOMATIC1111 AUTOMATIC1111 merged commit 5637115 into AUTOMATIC1111:master Oct 4, 2022
AUTOMATIC1111 added a commit that referenced this pull request Oct 4, 2022
nne998 pushed a commit to fjteam/stable-diffusion-webui that referenced this pull request Sep 26, 2023
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