replicate/replicate-python

Document generating multiple images

kendallroth opened this issue · 2 comments

Generating multiple images per prompt is ideal for comparison purposes, but does not seem supported. I am not sure whether this is just some models, or whether all Replicate models only generate a single output. However, it would be beneficial to have a documented approach to generating multiple images, as I am having trouble wading through attempts at such.

I first thought I could create multiple "background" predictions at the same time, but am not sure how to wait until they have all completed processing. Likely would involve the wait() function on all started predictions, but not sure how to go about this.

Is this a process that could be documented if already known? If not, could I get pointed in the right direction (if this is even possible)?