hkproj/pytorch-stable-diffusion

Stable Diffusion implemented from scratch in PyTorch

51
/ 100
Established

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.

Stale 6m No Package No Dependents
Maintenance 0 / 25
Adoption 10 / 25
Maturity 16 / 25
Community 25 / 25

How are scores calculated?

Stars

1,037

Forks

201

Language

Jupyter Notebook

License

MIT

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.