Stable Diffusion with 🧨 Diffusers
Hugging Face Blog 3 years ago
Stability AI and collaborators created Stable Diffusion, a text-to-image model trained on 512x512 images from the LAION-5B dataset, which can be run through the Diffusers library with just a few lines of code. The model uses latent diffusion with a default of 50 inference steps and achieves an 8x8 spatial compression ratio, reducing memory requirements so that 512×512 images can be generated on 16GB GPUs. Users can customize outputs by adjusting parameters like guidance_scale (7 to 8.5 recommended), num_inference_steps, and image dimensions, with quality improving as step count increases but generation time slowing proportionally.