Using AI to Generate Images
Image Generation and Computational Resources
To use Python Notebook:
Diffusion Models and Generative Adversarial Networks
Generating Images with Generative Adversarial Networks (GANs)
Generating Images with Stable Diffusion
Table 4.4: Stable Diffusion training process
Both GANs and Stable Diffusion models have delivered impressive results in the field
Text-to-Image Generation
Image-to-Image Generation with Text Guidance
The example on figure 4.31 uses the pretrained model "stable-diffusion-v1-5", which is appropriate for image-to-image generation with text guidance.
The following code will now be used to convert this to a photo of a tiger:
Text-Guided Image-Inpainting
The new image successfully replaces the cat from the
Give a brief description of text-guided image inpainting.
Describe the training process for Stable Diffusion models.
Describe the generator and discriminator components in Generative Adversarial Networks.
Use the DiffusionPipeline tool from the diffusers library to create a photo of your favorite animal eating your favorite food. Use the Google Colab platform for this task.
Use the StableDiffusionImg2ImgPipeline tool from the diffusers library to transform the animal in the photo from the previous exercise to a different animal of your choice. Use the Google Col