← All open source projects

Stable Diffusion

CompVis/stable-diffusion

Stable Diffusion is a repository for a latent diffusion model used to generate and modify images from text conditioning.

Forks 10,603
Author CompVis
Language Jupyter Notebook
License NOASSERTION
Synced 2026-06-11

What it is

Stable Diffusion is a repository for a latent diffusion model used for text-conditioned image generation and image modification. It became one of the symbols of open generative graphics: instead of only a closed web service, researchers and developers could study code, weights, and local or self-managed execution.

The CompVis/stable-diffusion repository appeared on GitHub in 2022. Its main format is Jupyter Notebook, and the official research context is latent diffusion models. GitHub metadata does not expose a simple SPDX license, so code, weights, and derivative model terms must be checked separately.

What is inside

Inside are code for Stable Diffusion v1, environment instructions, links to weights, text-to-image examples, image modification, and Diffusers integration. The key idea is latent-space operation: the model does not directly build pixels from scratch, but works with a more compact representation.

Simplified text-to-image flow

This fragment shows the process idea without running the model: text becomes conditioning, noise is gradually denoised in latent space, and then decoded into an image.

Language: Plain text
text prompt -> text encoder -> conditioning
noise -> denoising steps in latent space -> latent image
latent image -> decoder -> final image

Where it helps

Stable Diffusion helps researchers, artists, creative-tool developers, generation UI builders, educators, and people studying diffusion models. It became a foundation for many downstream tools, web interfaces, extensions, and experiments.

Image generation requires responsibility. Teams need to consider weight licenses, data sources, platform rules, privacy, harmful-content policies, and model bias.

Strengths and tradeoffs

The strength is open research code and ecosystem impact. The project made local image generation real for many developers and creative users.

The tradeoff is operational and legal complexity. GPU resources, weight checks, prompt controls, filters, usage policy, and post-processing all matter. For a product, this is not just “install a generator”; it is a whole system.