CompVis /
stable-diffusion
Why it matters
- The authors describe a fairly light model: 860M parameters for the image network and 123M for the text encoder.
- The reference script includes a safety module to reduce explicit outputs.
- The model was trained on 512x512 images from a subset of the LAION-5B database.
Before you start
- According to the README, you need a graphics card with at least 10 GB of video memory.
- The authors advise against using the weights in a service or product without extra safeguards, and call them research artifacts.
Try it
conda env create -f environment.yaml
conda activate ldm
python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plmsThe model weights are obtained separately, then linked into the repository's models/ folder before running the script. They come under a license with usage restrictions, to read first. Commands copied from the official README (December 2, 2026).
Install it with your AI agent

I install everything without reading and then I cry. You've got an agent, make it read. 😹
Milky
Hi, Milky from Silicium Rose sent me. Help me install CompVis/stable-diffusion: https://github.com/CompVis/stable-diffusion
1. Read the official README at that address (not from memory) and tell me in two sentences what it does and what it touches on my machine.
2. Check that my machine is suitable (system, versions, memory, graphics card, disk space). If anything is missing, say so before you start.
3. Install in its own folder, with an isolated environment if the project needs one.
4. Show me each command and wait for my go-ahead before any downloaded script, admin rights, large download or key. Never ask me to paste a key into the chat.
5. Finish with a very simple test, show me the result, and tell me how to run it and uninstall it.
Commands from the README, check them before running:
conda env create -f environment.yaml
conda activate ldm
python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
Good to know:
- According to the README, you need a graphics card with at least 10 GB of video memory.
- The authors advise against using the weights in a service or product without extra safeguards, and call them research artifacts.Paste it into Claude Code, Codex, Cursor, Gemini CLI or any agent with access to your terminal. Read what it proposes before you say yes.
Articles that cover it
Similar repositories
huggingfacediffusers
Diffusers is the Hugging Face Python library for generating images, audio and other content with diffusion models, the model family behind many image generators. It is for developers who want to run a model in a few lines or build their own.
2 articles
black-forest-labsflux
Official Black Forest Labs repository with the minimal code to run its FLUX.1 image models on your own machine. It is for generating or editing images from text.
4 articles
Tongyi-MAIZ-Image
A family of 6-billion-parameter image models, with a fast “Turbo” version. For people who want to generate images locally without a huge machine, or train their own tweaks.
Tested5 articles