hkproj/pytorch-stable-diffusion
Stable Diffusion implemented from scratch in PyTorch
Implements the complete diffusion pipeline including text tokenization (via BPE vocabulary), VAE-based latent encoding/decoding, and cross-attention conditioning between text embeddings and image generation. Supports loading pretrained checkpoints from Hugging Face, including fine-tuned models like InkPunk and Illustration Diffusion variants up to v1.5. Designed as an educational reference implementation that faithfully reproduces the original architecture while remaining compatible with the standard model weights ecosystem.
1,037 stars. No commits in the last 6 months.
Stars
1,037
Forks
201
Language
Jupyter Notebook
License
MIT
Category
Last pushed
Oct 22, 2024
Commits (30d)
0
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/diffusion/hkproj/pytorch-stable-diffusion"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Compare
Related models
siliconflow/onediff
OneDiff: An out-of-the-box acceleration library for diffusion models.
wooyeolbaek/attention-map-diffusers
🚀 Cross attention map tools for huggingface/diffusers
jina-ai/discoart
🪩 Create Disco Diffusion artworks in one line
chengzeyi/stable-fast
https://wavespeed.ai/ Best inference performance optimization framework for HuggingFace...
explainingai-code/StableDiffusion-PyTorch
This repo implements a Stable Diffusion model in PyTorch with all the essential components.