adieyal / dynamicprompts

Templating language for generating prompts for text to image generators such as Stable Diffusion
MIT License
124 stars 20 forks source link

Added an option for wildcards to be shuffled #94

Closed adieyal closed 1 year ago

adieyal commented 1 year ago

This will allow combinatorial generations to be random which matters when the number of generations is limited. This only solves the problem when wildcards are used. Inline choice operators are still deterministic

adieyal commented 1 year ago

This PR aims to address https://github.com/adieyal/sd-dynamic-prompts/issues/328 A config option will be available in the settings tab to enable shuffling.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +0.01 :tada:

Comparison is base (703df56) 97.67% compared to head (3776df2) 97.69%.

:exclamation: Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #94 +/- ## ========================================== + Coverage 97.67% 97.69% +0.01% ========================================== Files 71 71 Lines 2885 2909 +24 ========================================== + Hits 2818 2842 +24 Misses 67 67 ``` | [Impacted Files](https://app.codecov.io/gh/adieyal/dynamicprompts/pull/94?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adi+Eyal) | Coverage Δ | | |---|---|---| | [src/dynamicprompts/wildcards/wildcard\_manager.py](https://app.codecov.io/gh/adieyal/dynamicprompts/pull/94?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adi+Eyal#diff-c3JjL2R5bmFtaWNwcm9tcHRzL3dpbGRjYXJkcy93aWxkY2FyZF9tYW5hZ2VyLnB5) | `97.64% <100.00%> (+0.21%)` | :arrow_up: | | [tests/wildcard/test\_wildcardmanager.py](https://app.codecov.io/gh/adieyal/dynamicprompts/pull/94?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Adi+Eyal#diff-dGVzdHMvd2lsZGNhcmQvdGVzdF93aWxkY2FyZG1hbmFnZXIucHk=) | `100.00% <100.00%> (ø)` | |

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.