Skip to content

Repository files navigation

CS236 Default Project

This repository contains Stanford CS236 default final project starter code. The baseline models are Residual SNGANs from Mimicry: Towards the Reproducibility of GAN Research.

Installation

  • Install Miniconda package manager.
  • Create and activate conda environment.
conda env create -f environment.yml
conda activate cs236
  • Download dataset and baseline checkpoints.
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
  • Create leaderboard submission submission.pth (upload to Gradescope).
python eval.py --ckpt_path PATH_TO_CKPT --im_size RESOLUTION --submit
  • Visualize training logs 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.

Metrics

Baseline-32-150kBaseline-64-150kBaseline-32-295kBaseline-64-295k
Resolution32x3264x6432x3264x64
Seed00236236
Batch Size64646464
niter150k150k295k295k
ndis5555
β10000
β20.90.90.90.9
lr2e-42e-42e-42e-4
lrdecayLinearLinearLinearLinear
IS6.2127.2346.3267.330
FID42.45268.36035.33962.250
KID0.027340.062400.019840.05556
Samples

About

Stanford CS236 Default Final Project Starter Code

Topics

Resources

Stars

13 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages