{"id":15634217,"url":"https://github.com/aakashkumarnain/diffusion_models","last_synced_at":"2026-02-18T12:02:18.778Z","repository":{"id":50931072,"uuid":"503829213","full_name":"AakashKumarNain/diffusion_models","owner":"AakashKumarNain","description":"All about the fundamentals and working of Diffusion Models","archived":false,"fork":false,"pushed_at":"2022-12-19T17:14:03.000Z","size":12664,"stargazers_count":158,"open_issues_count":1,"forks_count":5,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-06-23T22:03:31.925Z","etag":null,"topics":["diffusion-models","generative-models"],"latest_commit_sha":null,"homepage":"https://magic-with-latents.github.io/latent/ddpms-series.html","language":"HTML","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/AakashKumarNain.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}},"created_at":"2022-06-15T15:47:26.000Z","updated_at":"2025-06-22T11:17:01.000Z","dependencies_parsed_at":"2023-01-29T22:16:14.177Z","dependency_job_id":null,"html_url":"https://github.com/AakashKumarNain/diffusion_models","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AakashKumarNain/diffusion_models","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AakashKumarNain%2Fdiffusion_models","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AakashKumarNain%2Fdiffusion_models/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AakashKumarNain%2Fdiffusion_models/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AakashKumarNain%2Fdiffusion_models/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AakashKumarNain","download_url":"https://codeload.github.com/AakashKumarNain/diffusion_models/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AakashKumarNain%2Fdiffusion_models/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279013688,"owners_count":26085390,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["diffusion-models","generative-models"],"created_at":"2024-10-03T10:52:57.438Z","updated_at":"2025-10-13T04:42:01.227Z","avatar_url":"https://github.com/AakashKumarNain.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"**Update:** Blog posts: [DDPMs from scratch](https://magic-with-latents.github.io/latent/ddpms-series.html)\n\n# Diffusion Models\n\nDiffusion models are a class of likelihood-based generative models that recently have been used\nto produce very high quality images compared to other existing generative models like GANs.\nFor example, take a look at the latest research [Imagen](https://imagen.research.google/) or\n[GLIDE](https://arxiv.org/abs/2112.10741)where the authors used diffusion models to generate\nvery high quality images.\n\nAlthough you can find a lot of material online regarding other generative models like GANs to\nlearn from, the list of resources for learning about diffusion models is still sparse. On top\nof it, the mathematics behind the diffusion models is a bit harder to understand. To address\nthis, we are creating this repo to give you enough material to make you understand the\nworking of diffusion models and the maths involved.\n\nWe try to keep everything organized in notebooks which you can run on **Colab.**\nWe are also organizing the content in a series of short blog-posts but that would take some time.\nAlso, some of the notebooks presented here are marked as *optional*. These notebooks covers\nthe theoretical parts that you should be aware of before reading about diffusion models. \n\n---\n\n## Table of Contents\n\n| Chapter No   | \u003cdiv style=\"width:250px\"\u003eTopic\u003c/div\u003e | Colab | GitHub |\n| ------------ | -----------------------------------  | ----- | ------ |\n|  1.  |[**Random Variables (Optional)**](https://magic-with-latents.github.io/latent/posts/ddpms/part1/)| [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/AakashKumarNain/diffusion_models/blob/main/notebooks/Random%20Variables.ipynb) |[![Open in GitHub](https://img.shields.io/static/v1?label=\u0026message=Open%20in%20GitHub\u0026labelColor=grey\u0026color=blue\u0026logo=github)](https://github.com/AakashKumarNain/diffusion_models/blob/main/notebooks/Random%20Variables.ipynb) |\n|  2.  | [**Gaussian Distribution and DDPMs**](https://magic-with-latents.github.io/latent/posts/ddpms/part2/)| [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/AakashKumarNain/diffusion_models/blob/main/notebooks/all_you_need_to_know_about_gaussian.ipynb) |[![Open in GitHub](https://img.shields.io/static/v1?label=\u0026message=Open%20in%20GitHub\u0026labelColor=grey\u0026color=blue\u0026logo=github)](https://github.com/AakashKumarNain/diffusion_models/blob/main/notebooks/all_you_need_to_know_about_gaussian.ipynb) |\n|  3.  | [**A deep dive into DDPMs**](https://magic-with-latents.github.io/latent/posts/ddpms/part3/)| [![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/AakashKumarNain/diffusion_models/blob/main/notebooks/deep_dive_into_ddpms.ipynb) |[![Open in GitHub](https://img.shields.io/static/v1?label=\u0026message=Open%20in%20GitHub\u0026labelColor=grey\u0026color=blue\u0026logo=github)](https://github.com/AakashKumarNain/diffusion_models/blob/main/notebooks/deep_dive_into_ddpms.ipynb) |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faakashkumarnain%2Fdiffusion_models","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faakashkumarnain%2Fdiffusion_models","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faakashkumarnain%2Fdiffusion_models/lists"}