diff --git a/README.md b/README.md index ff390ea..1e867ad 100644 --- a/README.md +++ b/README.md @@ -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 @@ -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: + +
+ +
+ ### 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 @@ -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 diff --git a/imgs/toy_models.png b/imgs/toy_models.png new file mode 100644 index 0000000..e67c6bc Binary files /dev/null and b/imgs/toy_models.png differ