finds.dev

soumith/ganhacks

starter from "How to Train a GAN?" at NIPS2016

View on GitHub

★ 11,619updated Jan 2022

// the take

A no-longer-maintained list of empirical tricks for training GANs, compiled by Soumith Chintala and others around 2016. It's for someone doing GAN work in an older framework or studying GAN training dynamics historically, not for anyone starting a new generative model project today.

The tricks are specific and testable (spherical Z sampling, separate real/fake batches for BatchNorm, label smoothing ranges), not vague advice. Several items cite the actual papers they came from (Salimans et al., Radford et al.), so you can go verify the claim instead of taking it on faith. Item 10 on tracking failure modes (D loss collapsing to 0, gradient norms over 100) is still useful diagnostic intuition for any adversarial training setup.

The README says outright it's unmaintained and the author isn't sure it's relevant past 2020 — that disclaimer is now six years stale itself. There's no code, just prose advice, so you can't run anything or check it against a reference implementation. GANs have largely been superseded by diffusion models for most generative tasks the tricks target (image synthesis), so half the value here is historical context rather than something you'd apply to a current project.

We read the README, the directory tree and a key source file in September 2026. Nobody pays to be listed. How we judge →

// at a glance

Stars
11,619
Forks
1,640
Last commit
9 Jan 2022

// nearby

If ganhacks isn't quite it.

All repos →