This is the codebase for Diffusion Models Beat GANS on Image Synthesis.
conda create --name diffusion python=3.9
conda activate diffusion
pip install -r requirements.txt
conda install mpi4py
Finally
pip install -e .
TBD
sh test.sh
To modify parameters in the test script
SAMPLE_FLAGS="--batch_size 2 --num_samples 20"
For sampling with 250 step DDIM:
use `--timestep_respacing ddim250 --use_ddim True`
sh train.sh exp1
mpiexec -n 1 python scripts/image_train.py $TRAIN_FLAGS
mpiexec -n N python scripts/image_train.py $TRAIN_FLAGS
TRAIN_FLAGS="--iterations 300000 --anneal_lr True --batch_size 4 --lr 3e-4 --save_interval 1000 --weight_decay 0.05"