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

randomizer in the jinja template seem to use a different seed. #108

Open
Nrgte opened this issue Aug 23, 2023 · 1 comment
Open

randomizer in the jinja template seem to use a different seed. #108

Nrgte opened this issue Aug 23, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Nrgte
Copy link

Nrgte commented Aug 23, 2023

If I assign a random value from a wildcard, it doesn't seem to use the normal generation seed.

{% set cloth_color = wildcard("__colors_cloth__")|random %}

Even if I fix the seed, the values will be different on each generation.

@adieyal adieyal added the bug Something isn't working label Aug 25, 2023
@jdahlstrom
Copy link

jdahlstrom commented Nov 11, 2023

Presumably it just uses Python's random modules's internal seed. Should calle random.seed somewhere, or even better, allow creating arbitrary Random instances in templates so you could fix the seed of one part of the template while varying another… There's also of course a lot of useful functions in random/Random that would be nice to have available in templates.

@akx akx transferred this issue from adieyal/sd-dynamic-prompts Nov 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants