What problem does it solve? Running Stable Diffusion locally involves many moving parts—pipelines, schedulers, VAEs, ControlNets, LoRA adapters, and GPU memory constraints. This Skill provides working code patterns and troubleshooting guidance so you can generate, transform, and deploy diffusion-based images without piecing together documentation from scratch. ## Core Features & Use Cases - Text-to-Image Generation: Produce images from prompts with SD 1.5, SDXL, SD 3.0, or Flux, with control over steps, guidance scale, seeds, and negative prompts. - Image Transformation: Perform image-to-image translation, inpainting of masked regions, and ControlNet-conditioned generation using edges, poses, or depth maps. - Optimization & Deployment: Apply LoRA adapters, memory optimizations (CPU offload, attention slicing, xFormers), and deploy generation as a FastAPI service with Docker and Kubernetes. - Use Case: A researcher needs to generate 50 variations of a product concept image. Using the batch generation and reproducible seed patterns, they produce consistent outputs on a single GPU with memory offloading enabled. ## Quick Start Ask the AI to write a Python script using Diffusers that loads stable-diffusion-v1-5 in float16 and generates an image from your prompt saved as output.png.