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

Take a random element from curly braces with a separator as in comfyUI #901

Closed
Evgen2194 opened this issue Nov 10, 2023 · 5 comments
Closed

Comments

@Evgen2194
Copy link

In comfiYUAI I can specify in the prompt “woman, {white hair|black hair|yellow hair}” and click generate 10 images. Then I will get a random result with one of three hair colors. This would be convenient for people like me who don’t know exactly what they want to get. A warrior with an ax or a sword or a bow, an ax and so on.

@Evgen2194 Evgen2194 changed the title Take a random element from the random element in curly braces with a separator as in comfyUI Take a random element from curly braces with a separator as in comfyUI Nov 10, 2023
@lllyasviel
Copy link
Owner

woman, __color__ hair

@LIQUIDMIND111

This comment was marked as off-topic.

@LIQUIDMIND111

This comment was marked as off-topic.

@Evgen2194
Copy link
Author

Evgen2194 commented Nov 12, 2023

woman, color hair

Yes, thank you, it happened that way, but what other words can be used in this way? Or what file can I look at and edit to add my own color to the “color”, or add my own word with my own examples with which this word could be replaced?
Again, if I use color without editing, certain standard colors will be used, but this is a problem if I only need two or three specific ones

@mashb1t
Copy link
Collaborator

mashb1t commented Dec 31, 2023

The current implementatiom will take random elements from all of the lines in a given wildcards file. If you only want to use specific wildcards, please create a new file with only these elements.
You can also generate one image for each of some elements by using the code of this PR: #1503

@mashb1t mashb1t closed this as completed Dec 31, 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

No branches or pull requests

4 participants