GithubHelp home page GithubHelp logo

diffusion_model's Introduction

diffusion_model

Custom Diffusion Model. The forward process allows for linear, quadratic, sigmoid and cosine beta schedules. The backwards process uses U-Net to denoise. Trained on the mnist dataset.
The Diffusion Model: https://lilianweng.github.io/posts/2021-07-11-diffusion-models/
UNET: image

Dependencies

  • Pytorch
  • tqdm
  • datasets
  • numpy
  • matplotlib
  • einops

Included Modules

  • Unet : The Unet image segementation model for 28 x 28 images
  • forward_process : creates a forward process class that defines a forward process (number of timesteps and beta schedule)
  • beta_schedule : various beta schedules to use for the forward process
  • load_data : loads the mnist dataset as a dataloader
  • mass_sample : samples the UNet denoising process creating a matplotlib figure with customizable size
  • sample : samples the Unet once
  • timeshow_sample : shows the denoising process from random noise to the final image
  • train_unet : trains the unet for a given number of epochs

diffusion_model's People

Contributors

theod0rewu avatar

Watchers

Kostas Georgiou avatar  avatar

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.