A basic diffusion model based on the seminal paper by Jonathan Ho et al.
These are a few examples of what this model generated after a lot of debugging.
Find a few trained models and other things on HuggingFace.
Smiling or Not Face Data from Kaggle.
The smiling or not smiling is not relevant to me, I just want to generate a face. I will combine all the categories of faces into one single dataset.
Installation
pipenv shell
pipenv install
Download Dataset
git clone https://huggingface.co/datasets/zrthxn/SmilingOrNot data/faces
unzip data/faces/Archive.zip -d data/faces
Dryrun Sanity Check
python main.py train --dryrun
Full Training
python main.py train \
--batch_size=128 \
--device=cuda \
--lr=0.001 \
--epochs=100
Papers
- Denoising Diffusion Probabilistic Models
- Deep Unsupervised Learning using Nonequilibrium Thermodynamics
- Improved Denoising Diffusion Probabilistic Models
Videos and Code