GithubHelp home page GithubHelp logo

azad-academy / denoising-diffusion-model Goto Github PK

View Code? Open in Web Editor NEW
200.0 5.0 32.0 48.22 MB

A simple guide to diffusion models. Helpful in understanding the concept and practicing with the method.

Home Page: https://www.azaditech.com

Jupyter Notebook 99.20% Python 0.80%
computer-vision deep-learning machine-learning python pytorch tensorflow

denoising-diffusion-model's Introduction

Denoising Diffusion Model

This is a simple guide to diffusion models.

diffusion-model image

Requirements

  • Python >= 3.7
  • pytorch >= 1.6
  • CUDA Toolkit
  • GPU

The tutorial πŸ“ƒ

On Medium:

https://azad-wolf.medium.com/diffusion-models-made-easy-8414298ce4da

On Substack:

https://azadwolf.substack.com/p/diffusion-models-made-easy

References

Sohl-Dickstein, J., Weiss, E. A., Maheswaranathan, N., & Ganguli, S. (2015). Deep unsupervised learning using nonequilibrium thermodynamics. arXiv preprint arXiv:1503.03585.

Max Welling & Yee Whye Teh. β€œBayesian learning via stochastic gradient langevin dynamics.” ICML 2011.

Ho, J., Jain, A., & Abbeel, P. (2020). Denoising diffusion probabilistic models. arXiv preprint arXiv:2006.11239.

Prafulla Dhariwal, Alex Nichol, Diffusion Models Beat GANs on Image Synthesis, arXiv: 2105.05233

denoising-diffusion-model's People

Contributors

azad-academy avatar azadlab avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

denoising-diffusion-model's Issues

model not converge

Hi, thanks for your excellent project !

I am new to diffusion models and I am now trying it on my own dataset (100 images of a specific senario). After being trained for 60k iterations with batch size 8, the model produces real images but with much noises. I have no idea how to debug. How can I improve the training of the model. Some tricks to share ?

Appreciate any help !

Embedding question in model

The output in the model is multiplied by an embedding (for each time as far as I understand). Is this a perturbation added for each time - perhaps r in the original diffusion paper? Trying to figure out how this fits in.

Thanks!

Typo in equation in colab notebook

I believe the second q should be x_{0} instead of x_{t-1} in the colab notebook

$$
q(\mathbf{x}{t}\mid\mathbf{x}{t-1}) = \mathcal{N}(\mathbf{x}{t} ; \sqrt{1-\beta{t}}\mathbf{x}{t-1},\beta{t}\mathbf{I})
$$

Substituting $\alpha_{t}=1-\beta_{t}$ and $\bar{\alpha}{t} = \prod{s=1}^{t} \alpha_{s}$

$$
q(\mathbf{x}{t}\mid\mathbf{x}{t-1}) = \mathcal{N}(\mathbf{x}{t} ; \sqrt{\bar{\alpha}{t}}\mathbf{x}{t-1},(1-\bar{\alpha}{t})\mathbf{I})
$$

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.