- Install Miniconda package manager.
- Create and activate conda environment.
conda env create -f environment.yml
conda activate cs236-dp
NOTE: PyTorch dependency specified in
environment.yml
uses CUDA 11.1. If CUDA 11.1 is unsupported on your environment, please install PyTorch separately by following the official instructions.
- Download dataset and baseline checkpoints and logs.
python download.py
- Start training using baseline model.
python train.py --name EXPERMENT_NAME
- Evaluate trained models.
python eval.py --ckpt_path PATH_TO_CKPT --im_size RESOLUTION
- Visualize baseline logs and your experiments using Tensorboard.
tensorboard --logdir out --bind_all
NOTE: Metrics logged during training (e.g. IS, FID, KID) are approximations computed using limited data. Use
eval.py
to compute accurate metrics.
The baseline models are Residual SNGANs from Mimicry: Towards the Reproducibility of GAN Research.
NOTE: Use 150k baselines to benchmark models trained from scratch and use 295k baselines if your models don't involve training from scratch.