How to generate more often images?

#6
by j35t3r - opened

Is this correct usage, if I want to generate more images (without changing the batch size), just to call it in a loop?

# !pip install diffusers
from diffusers import DDPMPipeline

ddpm = DDPMPipeline.from_pretrained("google/ddpm-celebahq-256")  

for _ in range(10):
    images = pipeline(batch_size=1, output_type='np').images # does it always generate different images? 

Sign up or log in to comment