Skip to content

Latest commit

 

History

History
71 lines (56 loc) · 1.87 KB

README.md

File metadata and controls

71 lines (56 loc) · 1.87 KB

Diffusion Model

A basic diffusion model based on the seminal paper by Jonathan Ho et al.


Generated Images

These are a few examples of what this model generated after a lot of debugging.

Trained Model

Find a few trained models and other things on HuggingFace.

Dataset

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.

Usage

Installation

pip install -r requirements.txt

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 \
    --timesteps 500 \
    --batch_size 64 \
    --lr 0.01 \
    --epochs 500 \
    --device cuda

Generate Images

python main.py test \
    --model trained_500e.pt \
    --ns_path scheduler.json \
    --output_dir . \
    --device mps

Resources

Papers

Videos and Code