For example, using one of these implementations - https://github.com/CompVis/stable-diffusion - https://github.com/lucidrains/denoising-diffusion-pytorch - https://github.com/kjsman/stable-diffusion-pytorch