Diffusion Models
AI/ML / November 2024
Custom diffusion sampling with inpainting, text-conditioning, and classifier-free guidance.
- Python
- PyTorch
- Hugging Face
Overview
Implemented DDPM sampling loops from scratch - not using a library's generate function, but building the actual noise schedule, forward process, and reverse denoising step by step.
Approach
Built an inpainting pipeline for masked image completion using pretrained models. Text-to-image generation with CLIP embeddings and classifier-free guidance - mixing conditioned and unconditioned predictions to control how strongly the output follows the prompt.
Explored latent space interpolation between prompts to understand how the model's internal representation transitions between concepts.