LibreAI / Bild / Stable Diffusion (Original)
// image · CompVis/stable-diffusion

Stable Diffusion (Original)

Stable Diffusion (Original) ist ein Projekt aus der Kategorie Bild von CompVis (CompVis/stable-diffusion auf GitHub). Es hat 73.572 Sterne auf GitHub und 10.674 Forks, wird unter den Bedingungen «Open RAIL-M» veröffentlicht und wurde zuletzt am 18. Juni 2024 auf GitHub aktualisiert.

The original latent text-to-image diffusion model from CompVis — the CVPR 2022 reference implementation, Open RAIL-M

★ 73,6 Tsd. Sterne⑂ 10,7 Tsd. ForksOpen RAIL-Maktualisiert Jun 2024
▦ Visual — das README dieses Projekts enthält keinen einbettbaren Screenshot,
darum hier ein Platzhalter. Die Anleitung unten ist trotzdem vollständig.
// projektdaten

Projektdaten

GitHub-Sterne
73.572
Forks
10.674
Lizenz
Open RAIL-M
Zuletzt auf GitHub aktualisiert
18. Juni 2024
Kategorie
Bild
Eintragstyp
Vollständige Installationsanleitung
Offizielle Website
Model card on Hugging Face
// so funktioniert es

So funktioniert es

  1. Create the conda environment

    The repo ships an environment file; create and activate the ldm environment from it.

  2. Install the package

    Install the repo itself in editable mode, with the pinned transformers and diffusers versions from the README.

  3. Get the weights

    Download a v1 checkpoint from the CompVis organisation on Hugging Face and link it into models/ldm/stable-diffusion-v1/.

  4. Generate your first image

    Run the reference sampling script with a prompt; the default is 512x512 in 50 steps at guidance scale 7.5.

// funktionen

Warum es so beliebt ist

The original reference code

The exact implementation behind the CVPR 2022 latent-diffusion paper, with the v1.1–v1.4 checkpoints.

Text-to-image and img2img

Generate from a prompt, or transform a sketch or photo with SDEdit-style diffusion denoising.

Built-in safety tooling

A safety checker module and invisible watermarking on outputs, so generated images are identifiable.

Diffusers integration

The same weights run through the Hugging Face diffusers pipeline for a shorter, maintained path.

Light for what it does

An 860M UNet plus a 123M text encoder — runnable on a GPU with 10GB of VRAM.

// selbst ausführen

Führe es selbst aus

  1. Step 1 — Create the environment

    Build the ldm conda environment from the repo file and activate it.

    conda env create -f environment.yaml
    conda activate ldm
  2. Step 2 — Install the package

    Install the repo in editable mode with the pinned dependencies.

    pip install transformers==4.19.2 diffusers invisible-watermark
    pip install -e .
  3. Step 3 — Sample an image

    Generate a 512x512 image from a prompt with the PLMS sampler.

    python scripts/txt2img.py --prompt "a photograph of an astronaut riding a horse" --plms
// anwendungsfälle

Was du damit bauen kannst

  • Generate images from text prompts on your own GPU
  • Turn sketches into finished artwork with img2img
  • Study the reference implementation behind modern diffusion UIs
  • Run the v1 checkpoints as a baseline for fine-tuning experiments

Close neighbours on the Image shelf: Stable Diffusion Webui, and diffusers — State-of-the-art diffusion models for image, video. The full shelf is the Image tools in the catalogue.

// häufige fragen

Häufige Fragen

Is this the real Stable Diffusion?

Yes — CompVis/stable-diffusion is the original repository from the paper authors, the code every web UI and fork descends from.

Is it free to use?

The code and weights are under the CreativeML Open RAIL-M licence, which permits commercial use with use-based restrictions; the README advises adding safety mechanisms before using the weights in a service.

What GPU do I need?

At least 10GB of VRAM for the v1 model at 512x512, per the README.

Is it still maintained?

No — the last push was 2024-06-18. It is the stable canonical original; the actively maintained route is the diffusers library.

How do I run it the easy way?

Through diffusers: StableDiffusionPipeline.from_pretrained("CompVis/stable-diffusion-v1-4") — the README shows the snippet.

// weiter entdecken

Ähnliche Tools

Bild

diffusers

🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.

★ 34,6 Tsd. SterneApache-2.0
Anleitung ansehen →
Bild

ComfyUI

The node-graph powerhouse for precise, professional AI image and video generation.

★ 136,0 Tsd. SterneGPL-3.0
Anleitung ansehen →
Bild

Kandinsky-2

Kandinsky 2.2 — multilingual text-to-image latent diffusion with ControlNet, inpainting and image fusion

★ 2,8 Tsd. SterneApache-2.0
Anleitung ansehen →
Bild

mmagic

MMagic — OpenMMLab's generative-AI toolbox: diffusion, text-to-image, restoration and a model zoo.

★ 7,5 Tsd. SterneApache-2.0
Anleitung ansehen →
Bild

stable-diffusion.cpp

Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++

★ 7,5 Tsd. SterneMIT
Anleitung ansehen →
// alternativen

Alternativen im Bereich Bild

Die anderen Projekte der Kategorie Bild mit den meisten Sternen im LibreAI-Katalog — die realistische Auswahl, falls Stable Diffusion (Original) nicht das Richtige ist.

  • Stable Diffusion Webui★ 165,2 Tsd.

    Stable Diffusion web UI

  • ComfyUI★ 136,0 Tsd.

    The node-graph powerhouse for precise, professional AI image and video generation.

  • Immich★ 115,5 Tsd.

    High performance self-hosted photo and video management solution

  • PhotoCraft★ 73,2 Tsd.

    PhotoCraft — a clean-room Photoshop reimplementation in pure Rust: layers, masks, adjustment layers, type, vectors, brushes and real PSD files, offline, MIT / Apache-2.0

  • Fooocus★ 53,3 Tsd.

    Focus on prompting and generating

// mehr in image

Mehr in Bild

Verwandte Projekte der Kategorie Bild im Katalog, die Stable Diffusion (Original) bei den Sternen am nächsten stehen — zum Weiterstöbern auf beiden Seiten.

  • Immich★ 115,5 Tsd.

    High performance self-hosted photo and video management solution

  • PhotoCraft★ 73,2 Tsd.

    PhotoCraft — a clean-room Photoshop reimplementation in pure Rust: layers, masks, adjustment layers, type, vectors, brushes and real PSD files, offline, MIT / Apache-2.0

  • ComfyUI★ 136,0 Tsd.

    The node-graph powerhouse for precise, professional AI image and video generation.

  • Fooocus★ 53,3 Tsd.

    Focus on prompting and generating

  • Stable Diffusion Webui★ 165,2 Tsd.

    Stable Diffusion web UI

  • Upscayl★ 50,1 Tsd.

    🆙 Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows

Hol dir Stable Diffusion (Original)

Sieh dir den Quellcode an, gib dem Repository einen Stern und leg los.