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

[Feature Request] Prompt templating for Inference UI #769

Closed
sttollgrin opened this issue Jul 17, 2024 · 5 comments
Closed

[Feature Request] Prompt templating for Inference UI #769

sttollgrin opened this issue Jul 17, 2024 · 5 comments
Labels
area: inference enhancement New feature or request stale Stale issue or inactive for long period of time

Comments

@sttollgrin
Copy link

Please consider adding syntax that would add ability to create dynamic prompts that are resolved every time new image is generated.
For example (all syntax listed below is just an example based on existing <lora/embeddings> syntax):

a <random:girl|boy> with <random:red|green|purple|yellow|black> hair in style of <random:artist1, <lora:style_artist1:0.8>|artist2, <lora:style_artist2:0.9>>

upon running image generation would resolve to something like:

a girl with purple hair in style of artist1, <lora:style_artist1:0.8>

or

a boy with black hair in style of artist2, <lora:style_artist2:0.9>

and generate image according to that resolved prompt.

Moreover, with multiple batches, each batch would have new prompt generated so running above with 5 batches may generate 5 different prompts:

a girl with purple hair in style of artist1, <lora:style_artist1:0.8>
a boy with black hair in style of artist2, <lora:style_artist2:0.9>
a girl with yellow hair in style of artist2, <lora:style_artist2:0.9>
a girl with red hair in style of artist1, <lora:style_artist1:0.8>
a boy with purple hair in style of artist2, <lora:style_artist2:0.9>

and so on

it should be also possible to select multiple choices at once

a girl with two color hair, <random,2:red|green|purple|yellow|black>

could generate for example

a girl with two color hair, red, green
a girl with two color hair, yellow, purple

other possible enhancements could include combinatorial prompt generation:

a <combinatorial:girl|boy> with <combinatorial:red|green|purple> hair

would generate all combinations of possible prompts

a girl with red hair
a girl with green hair
a girl with purple hair
a boy with red hair
a boy with green hair
a boy with purple hair

and generate image for each possible prompt (so for example here, with batch count=1 it would actually generate 6 different images, with batch count=2 it would be 12 images etc)

ionite34 added a commit to LykosAI/StabilityMatrix-Dev that referenced this issue Aug 15, 2024
Fix Inference connection errors with newer ComfyUI

(cherry picked from commit 6afe2ef)

# Conflicts:
#	CHANGELOG.md
Copy link

This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.

@github-actions github-actions bot added the stale Stale issue or inactive for long period of time label Aug 17, 2024
@mohnjiles mohnjiles added enhancement New feature or request area: inference and removed stale Stale issue or inactive for long period of time labels Aug 17, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.

@github-actions github-actions bot added the stale Stale issue or inactive for long period of time label Sep 17, 2024
mohnjiles pushed a commit to LykosAI/StabilityMatrix-Dev that referenced this issue Sep 18, 2024
Fix Inference connection errors with newer ComfyUI
Copy link

This issue was closed because it has been stale for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Sep 22, 2024
@mohnjiles mohnjiles removed the stale Stale issue or inactive for long period of time label Sep 22, 2024
@mohnjiles mohnjiles reopened this Sep 22, 2024
Copy link

This issue is stale because it has been open 30 days with no activity. Remove the stale label or comment, else this will be closed in 5 days.

@github-actions github-actions bot added the stale Stale issue or inactive for long period of time label Oct 23, 2024
Copy link

This issue was closed because it has been stale for 5 days with no activity.

@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: inference enhancement New feature or request stale Stale issue or inactive for long period of time
Projects
None yet
Development

No branches or pull requests

2 participants