dalle-mini icon indicating copy to clipboard operation
dalle-mini copied to clipboard

Variadic image sizes

Open LukeWood opened this issue 2 years ago • 2 comments

is it possible to use Dall-E mini to produce variable size images?

LukeWood avatar May 14 '22 22:05 LukeWood

The model currently only makes 256x256, then you would need another model to make it larger (super resolution models)

borisdayma avatar May 16 '22 16:05 borisdayma

You can make them bigger with an simple scale (not AI):

for decoded_img in decoded_images:
    img = Image.fromarray(np.asarray(decoded_img * 255, dtype=np.uint8))
    img = img.resize((512,512)) # <-- HERE
    images.append(img)
    display(img)
    print()

jalbarracinv avatar Jun 11 '22 06:06 jalbarracinv