Generating photo 3 of 4
- Dominant language
- Python
- Stars
- 133k
- Forks
- 15.7k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 153
Description
I'm running a large batch of images (several hundred thousand) using the API. I'm running 4 images for each unique set of variables. All image groups are using the same random seed. If I run the workflow with a batch size of 4 I get four distinct images. If I run the workflow with a batch size of 3 I get the same first 3 images out of the batch, which is great, but what I would love to do is generate the first image in the group now, the second image in the group later, and so on.
So, my question is this, can I generate just the 3rd image generated by a given workflow and skip images 1, 2, and 4?
What I was thinking is that I could generate say 100,000 runs for image 1, then I could use that single image four times to test and create the app that goes around the 100,000 images. While I'm doing that I would generate images 2, then 3, then 4 and build the total images up over time (I estimate that it will take weeks to generate all the images I want).
I'm assuming that under the hood ComfyUI generates a series of images using a random function seeded with the passed seed. Unfortunately, the secondary seeds are not stored in the JSON in the image (at least, not that I've been able to find). I figure I can dig through the code for ComfyUI and find where it's generating the seed and manufacture that seed generation progress myself to get the secondary seeds, but before I did that asking for an easier, and existing, solution would be a good idea.
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.