Error while converting to PIL format

#2
by aryan1107 - opened

As per instruction when I use: image_stream = image_stream.to('cpu').numpy()

I get this
AttributeError: 'generator' object has no attribute 'to'

You can call generate_images instead of generate_images_stream if you only want the final generated image. The stream returns an iterator which you can loop over to get the images, e.g. for image in image_stream

kuprel changed discussion status to closed

Sign up or log in to comment