Explain diffusion models used in image generation.

Diffusion models are a type of generative AI model that create images by learning how to gradually remove noise from random data until a…