This repository is on using variational autoencoders (VAE) and diffusion model (DDPM) for cartoon image generation. Code is implemented using Python 3.10 and tested on Ubuntu OS. Cartoon Set (10k) is used for trainning both the VAE and diffusion models. More implementation details can be found at this blog post.
VAE Result
5x5 VAE sample grid
DDPM Result
5x5 DDPM sample grid
Clone the project and go to project directory
python3 -m venv env && source env/bin/activate pip install -r requirements.txt- run train_vae.py or train_ddpm.py to train a VAE or DDPM respectively.
- run fast_nst_training.py to train the feedforward convolutional neural network using fast neural style transfer algorithm.
- Add DDPM code.
- Auto-Encoding Variational Bayes (VAE Paper)
- Denoising Diffusion Probabilistic Models (DDPM Paper)
- Diffusion Models | Paper Explanation | Math Explained, Diffusion Models | PyTorch Implementation (YouTube) and corresponding github repo Diffusion-Models-pytorch
- Diffusion Model 原理剖析 by Prof. Hung-yi Lee (李宏毅)

