txt2img.Build text-to-image generative AI models from scratch with Python and PyTorch. Focus on two methods: Diffusion models, which iteratively denoise to generate image conditional on text prompt, and vision Transformers, which treat an image as a sequence of patches, and generates one patch at a time.