3 ms·
I automated the generation of 2048 x 1024 images and started a Twitter bot: https://twitter.com/Bible_or_anime https://twitter.com/Bible_or_anime The relevant
by charlesjlee 4y ago
I automated the generation of 2048 x 1024 images and started a Twitter bot:
https://twitter.com/Bible_or_anime https://twitter.com/Bible_or_anime
The relevant code is linked below and is a mess, but the idea is:
1. Generate a base image
2. Use inpainting to expand the left-hand side of the root image. You can do this by submitting an image whose left side is transparent and whose right side is the left side of the root image
3. Ditto for right-hand side
4. Stitch the three separate images together
https://github.com/charlesjlee/twitter_dalle2_bot/blob/main/dalle2.py#L140-L154 https://github.com/charlesjlee/twitter_dalle2_bot/blob/main/...