Comments (6)
Have you checked the Combinatorial Generation checkbox? To help you understand what's happening in the back-end, there are two main prompt generators, a RandomPromptGenerator
and CombinatorialPromptGenerator
. The first is what you're probably familiar with, you give it a prompt template, tell it how many batches, and how many image per batch, and it generates that number of randomly generated prompts using the prompt template..
CombinatorialPromptGenerator
isn't random it all. It produces every possible variation that it can, as in your examples above. To enable it, you check the combinatorial box. Combinatorial batches is a newly-requested feature. If you set it to 2, it will run as follows:
my favourite color is __MyColor__
my favorite color is red (seed 1)
my favorite color is black (seed 2)
my favorite color is white (seed 3)
my favorite color is red (seed 4)
my favorite color is black (seed 5)
my favorite color is white (seed 6)
Does that help?
from sd-dynamic-prompts.
It didn't work. I tried a simple prompt with below settings:
Prompt:
style\genre
batch count: 1
batch size : 1
Combinatorial Generator : Selected
Batches: 1
Tried it with batch count set to 2, and it should have picked the first two genres from the file that is American frontier
American propaganda,
but it picked western and something else.
from sd-dynamic-prompts.
Prompt was :
style\genre
from sd-dynamic-prompts.
__ style\genre __
from sd-dynamic-prompts.
I think I understand what you're seeing. I made a change recently to remove duplicates, i.e. you shouldn't get American frontier twice. The deduplication makes the order unpredictable, i.e. it will pick any two from your file. If you file has ten genres in it and you set your batch count to ten, it should use every one of the genres once.
Could you confirm that's the case?
from sd-dynamic-prompts.
Yes, that's working like that. Thanks for the clarification.
from sd-dynamic-prompts.
Related Issues (20)
- Variables not support `,` Comma , `(` parenthesis
- Should not fail all wildcards when one of is invalid HOT 2
- Wildcards are just failing to unpack
- Enhancement: enrich csv export
- not support wildcards as sep
- Extension takes more time than image generation between each batch HOT 3
- Error completing request? HOT 1
- Combinatorial generation batch > 1 acting wrong HOT 4
- support new SYNTAX something like `__&wildcard__` in yaml
- popup error message
- save wildcards hash in pnginfo HOT 1
- bug: min range not work HOT 1
- Nested Wildcards
- bug:Using the Choosing Multiple Values function with dynamic prompts in ComfyUI does not work.
- Unable to compare LORA strenghs - Only first value used
- Error running process HOT 3
- Move the `Dynamic Prompts enabled` to the accordion label
- prompt matrix broken when enable dynamic-prompts HOT 2
- Bug: Issue with dynamic prompts + hi-res fix + batch count > 1 (in A1111 / unclear beyond that)
- [Documentation Question] Is single asterisk after path separator incorrect?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sd-dynamic-prompts.