# Stable Diffusion

Stable Diffusion is a self-hosted AI image generator that runs a selectable Web UI locally, giving you full control over models and settings without cloud dependency, and it requires an Nvidia GPU with at least 6 GB of. It is open source and self-hosted, installable on Unraid.

Canonical page: https://ourlocalhost.com/app/1356/stable-diffusion

## Description

Stable Diffusion is a self-hosted AI image generator that runs a selectable Web UI locally, giving you full control over models and settings without cloud dependency, and it requires an Nvidia GPU with at least 6 GB of VRAM.

## Platform availability

Available on 2 of 10 platforms: Unraid, ZimaOS.

## Health score

43/100 (Fair), based on 5 of 5 factors.
- Maintained: 0 (last commit 1465 days ago)
- Popular: 97 (73,569 GitHub stars)
- Easy to install: 45 (2 install platforms, install notes, Docker image)
- Light to run: 10 (12 GB minimum RAM)
- Security check: 85 (no serious findings, tests)

## Links

- GitHub: https://github.com/CompVis/stable-diffusion
- Unraid: https://ca.unraid.net/apps/stable-diffusion-0bmx80a1swooum?q=stable-diffusion
- Official website: https://ommer-lab.com/research/latent-diffusion-models/

## Common questions

### How do I set up the base CompVis Stable Diffusion environment?

Create a conda environment named ldm and activate it, or update an existing latent diffusion environment with PyTorch and TorchVision. Then install transformers==4.19.2, diffusers, and invisible-watermark, and run pip install -e ..

### What license restrictions apply to the Stable Diffusion v1 weights?

The v1 weights are available under a license that contains specific use-based restrictions to prevent misuse and harm. It otherwise remains permissive.

### What common Stable Diffusion errors are worth checking first?

Common failure symptoms include black images, CUDA errors, slow generation, and out-of-memory crashes.

### Do self-hosters want to avoid storing generated images when running Stable Diffusion in the cloud?

One cloud-hosting thread asks for the cheapest cloud server to host a Stable Diffusion model and says the user does not want to store generated content, only user information for login and authentication.

### Do organizations consider self-hosting Stable Diffusion for private use?

A Reddit thread suggests some companies may want their own Stable Diffusion deployment but may not have the knowledge to do so.

---
Source: Our Local Host (https://ourlocalhost.com/app/1356/stable-diffusion), the self-hosted and open-source app directory.
