GAN CIFAR Example #
Small LSGAN-style executable path.
This trains:
- a generator
z -> imagetoward the current CIFAR minibatch as a stable warm-up objective; - a discriminator on real CIFAR images (
1) and deterministic noise images (0).
The formal LSGAN objective decomposition lives in NN.Spec.Models.Gan and
NN.MLTheory.Generative.Latent.GAN. A full alternating adversarial trainer can reuse the same
generator/discriminator constructors and data path.
Instances For
Instances For
def
NN.Examples.Models.Generative.Gan.trainCurve
(opts : Runtime.Autograd.Torch.Options)
(xPath yPath : System.FilePath)
(nRows seed steps : ℕ)
: