Skip to content

Commit

Permalink
Added toy model results
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanchenyang committed Jan 11, 2024
1 parent 76752f1 commit d3b5028
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# smalldiffusion

[![Build Status][build-img]][build-url]

A lightweight diffusion library for training and sampling from diffusion
models. It is built for easy experimentation when training new models and
developing new samplers, supporting minimal toy models to state-of-the-art
Expand Down Expand Up @@ -29,6 +31,12 @@ losses = [ns.loss.item() for ns in trainer]
*xt, x0 = samples(model, schedule.sample_sigmas(20))
```

Results on various toy datasets:

<p align="center">
<img src="https://github.com/yuanchenyang/smalldiffusion/blob/main/imgs/toy_models.png" width=90%>
</p>

### U-Net models
The same code can be used to train [U-Net-based models][unet-py]. To
train a model on the FashionMNIST dataset and generate a batch of samples (after
Expand Down Expand Up @@ -163,3 +171,5 @@ Yuan]](https://arxiv.org/abs/2306.04848).
[unet-py]: https://github.com/yuanchenyang/smalldiffusion/blob/main/examples/unet.py
[diffusers-wrapper]: https://github.com/yuanchenyang/smalldiffusion/blob/main/examples/diffusers_wrapper.py
[stablediffusion]: https://github.com/yuanchenyang/smalldiffusion/blob/main/examples/stablediffusion.py
[build-img]: https://github.com/yuanchenyang/smalldiffusion/workflows/CI/badge.svg?branch=main
[build-url]: https://github.com/yuanchenyang/smalldiffusion/actions?query=workflow%3ACI
Binary file added imgs/toy_models.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit d3b5028

Please sign in to comment.