Lesson Generating Visual Data - Artificial Intelligence - ثالث ثانوي

Lesson 3 Generating Visual Data

Using AI to Generate Images

Lesson 3 Generating Visual Data

Image Generation and Computational Resources

Lesson 3 Generating Visual Data

To use Python Notebook:

Diffusion Models and Generative Adversarial Networks

Lesson 3 Generating Visual Data

Generating Images with Generative Adversarial Networks (GANs)

Generating Images with Stable Diffusion

Table 4.4: Stable Diffusion training process

Lesson 3 Generating Visual Data

Both GANs and Stable Diffusion models have delivered impressive results in the field

Text-to-Image Generation

Lesson 3 Generating Visual Data

Image-to-Image Generation with Text Guidance

Lesson 3 Generating Visual Data

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.

Lesson 3 Generating Visual Data

The following code will now be used to convert this to a photo of a tiger:

Lesson 3 Generating Visual Data

Text-Guided Image-Inpainting

Lesson 3 Generating Visual Data

The new image successfully replaces the cat from the

Lesson 3 Generating Visual Data

Give a brief description of text-guided image inpainting.

Describe the training process for Stable Diffusion models.

Lesson 3 Generating Visual Data

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