From the course: Generative AI Imaging Tools for Developers
Unlock this course with a free trial
Join today to access over 24,900 courses taught by industry experts.
Variations
From the course: Generative AI Imaging Tools for Developers
Variations
- [Instructor] Letting users generate variations of images can be pretty straightforward if you use Dall-E 2. Let's take a look at my simple implementation of this. So, my endpoint takes the image and it receives an image file name. It then opens this image and it sends it over to Dall-E for generating one variation. Finally, it loads this new image into memory. On the client side, I created a Variations button, as well as some JavaScript to handle this button's action. So if you have opened a new terminal session, this would be the time to export your API key. And I'm going to cd into 02_03_begin. Clear my terminal, and python3 app.py. I'll navigate to my application again. And I have a few images to choose from. I like this one right here of vegan tofu, and I'll create variations of it. I'll wait a little bit. And I have a new generation. Keep in mind that these variations are lower quality than the original images. And this is not because we are creating a variation, it's because…