{"id":21205083,"url":"https://github.com/xrsrke/stable-diffusion-from-scratch","last_synced_at":"2025-06-30T10:05:28.235Z","repository":{"id":65415971,"uuid":"570339027","full_name":"xrsrke/stable-diffusion-from-scratch","owner":"xrsrke","description":"Implementation of Stable Diffusion from scratch [WORK IN PROGRESS]","archived":false,"fork":false,"pushed_at":"2023-02-18T08:07:06.000Z","size":31446,"stargazers_count":22,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T11:51:12.922Z","etag":null,"topics":["deep-learning","machine-learning","stable-diffusion"],"latest_commit_sha":null,"homepage":"https://xrsrke.github.io/stable-diffusion-from-scratch/","language":"Jupyter Notebook","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xrsrke.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-11-24T23:59:16.000Z","updated_at":"2025-03-04T06:54:03.000Z","dependencies_parsed_at":"2024-11-20T20:42:54.463Z","dependency_job_id":"63f11339-7c0b-4a86-a72f-63c040044abb","html_url":"https://github.com/xrsrke/stable-diffusion-from-scratch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xrsrke/stable-diffusion-from-scratch","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrsrke%2Fstable-diffusion-from-scratch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrsrke%2Fstable-diffusion-from-scratch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrsrke%2Fstable-diffusion-from-scratch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrsrke%2Fstable-diffusion-from-scratch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xrsrke","download_url":"https://codeload.github.com/xrsrke/stable-diffusion-from-scratch/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xrsrke%2Fstable-diffusion-from-scratch/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262753166,"owners_count":23358881,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deep-learning","machine-learning","stable-diffusion"],"created_at":"2024-11-20T20:42:49.751Z","updated_at":"2025-06-30T10:05:28.202Z","avatar_url":"https://github.com/xrsrke.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"Implementation of Stable Diffusion\n================\n\n\u003c!-- WARNING: THIS FILE WAS AUTOGENERATED! DO NOT EDIT! --\u003e\n\n------------------------------------------------------------------------\n\nThis repository contains Stable Diffusion’s implementation in PyTorch.\n\n## Updates\n\nThis isn't actually an implementation of stable diffusion from scratch. I cancelled this project and started working on [RLHF](https://github.com/xrsrke/instructGOOSE)\n\n## Install\n\n``` sh\npip install -r requirements.txt\npip install -e .\n```\n\n## Usage\n\n``` python\nfrom PIL import Image\nfrom foundation.stable_diffusion import StableDiffusion\n\nprompt = \"holy young female battle robot flying award winning, portrait bust symmetry faded tetrachromacycolors arctic background tim hildebrandt wayne barlowe bruce pennington donato giancola larry elmore masterpiece trending on artstation cinematic composition beautiful lighting hyper detailed!!! 8 k oil on canva\"\n\nmodel = StableDiffusion(n_inference_steps=30)\nimages = model.generate(prompt)\n\npil_images = [Image.fromarray(image) for image in images]\npil_images[0]\n```\n\n![image.png](index_files/figure-commonmark/b7e74575-2-image.png)\n\n![image.png](index_files/figure-commonmark/b7e74575-1-image-2.png)\n\n## Paper Reviews\n\n### CLIP - Multimodal Neurons\n\n### VAE\n\nVariational Autoencoder (VAE) model with KL loss from the paper\nAuto-Encoding Variational Bayes by Diederik P. Kingma and Max Wellin\n\n### UNET\n\n### Diffusion Process\n\n## Contributing\n\nThis repository is still a work in progress.\u003cbr\u003e Currently, no downloads\nand no executables are provided.\n\nI welcome many contributors who can help.\n\n## License\n\nLicensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrsrke%2Fstable-diffusion-from-scratch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxrsrke%2Fstable-diffusion-from-scratch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxrsrke%2Fstable-diffusion-from-scratch/lists"}