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

Correct seed is not saved to files made as a batch #165

Closed
no-connections opened this issue Mar 19, 2023 · 4 comments
Closed

Correct seed is not saved to files made as a batch #165

no-connections opened this issue Mar 19, 2023 · 4 comments

Comments

@no-connections
Copy link

Only the starting seed is saved to all files in a batch.
Meaning if you load the image by drag and drop it will not produce the same image.

@WASasquatch
Copy link
Contributor

WASasquatch commented Mar 19, 2023

A stable diffusion batch is done with one seed which produces all images, where internally it augments the seed. The script doesn't know what the seed is. It's the same as doing a batch size of 12 with batch count of 1 in WebUI, where you get 12 images with one generation internally, based on the one seed you set.

ComfyUI doesn't do batch counts, as in X batches of X generations, but batch size, with 1 generation and X images being generated at once.

@no-connections
Copy link
Author

Oooh batch count is what I want the which was semi hidden under extra options. Not the same thing as batch size. Should have read closer.
So the added question would be, how do I get the "internal" seed for each image with batch size so it can be reproduced? or is that just impossible.

@WASasquatch
Copy link
Contributor

I wanna say they wouldn't just randomize it but probably increment it, sorta how I did for Easy Diffusion, cause one digit change is the same as any other random number. Have you tried just doing your original seed + 1 to see if it brings about the second image?

@no-connections
Copy link
Author

Incrementing don't seem to be the same.
Maybe someone that knows the inner workings could comment on what happens and if there is a solution to make those images reproduce able at a later time as a single image without doing it as a batch again. A batch with the same seed comes out identical.

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

2 participants