HyperGAN/HyperGAN
Composable GAN framework with api and user interface
What it solves
Training generative models (like GANs) usually means juggling complex configuration files, monitoring progress, and exporting the final generator for serving. HyperGAN packages these steps into a clean workflow driven by declarative TOML files. You define the model architecture, data, and training hyperparameters in one place, then use a simple command-line interface or Python API to scaffold, train, track, sample, evaluate, and export models without hand-writing boilerplate.
How it works
HyperGAN uses a configuration file (format hypergan-model/1) containing sections for data, prior, generator and discriminator networks, loss functions, training parameters, metrics, checkpoints, and sampling. You create a project with hypergan new, which can automatically detect image resolution and color mode from a folder of images, and it sizes the networks accordingly. Training runs are launched with hypergan train, each getting a unique Run ID, a Docker-style slug (like fleet-hawk), and optional tags. You can inspect active runs from any directory, follow logs, request checkpoints, stop gracefully, resize from a checkpoint, and compare runs side-by-side. A Web Observatory (hypergan view) provides a live dashboard showing learning curves, sample history, FID scores, and hardware usage. Finally, hypergan export produces a standalone inference bundle (with a SHA-256 digest) that can be loaded with the Python API or served in various formats.
Who it's for
Researchers, ML engineers, and hobbyists who train generative models — especially GANs — and want a reproducible, observable, and export-friendly workflow. It suits users comfortable with configuration files and command-line tools, and it offers a typed Python API for those who prefer scripting.
Highlights
- Declarative TOML configuration for the whole training pipeline
- Automatic architecture sizing from image folders (32/64/128/256, RGB/gray)
- CLI and Python API (
import hypergan as hg) with lazy loading (no PyTorch import until training/sampling) - Run management with global registry, slugs, tags, and tracking from any directory
- Web Observatory dashboard with live metrics, sample history, and per-run controls
- Export to Python bundles, PT2, ONNX Runtime, and SafeTensors
- Supports multi-GPU training (single-host replicated) with measured 2.20× throughput gain on two A6000s at batch 256
- Includes packaged CIFAR-10 architectures and a 128×128 colorizer; a 256×256 DINOv3 logo colorizer is available as a source example
- Garbage collection and checkpoint pruning to reclaim disk space
Related
- Project
- Project
- Dispatch
- Project
- Project