TorchLean API

NN.Examples.Models.Generative.VqVae

VQ-VAE-Style CIFAR Example #

Trains a compact vector reconstruction model with a narrow tanh bottleneck, paired with the VQ-VAE spec/theory modules. The theorem-facing codebook objective lives in NN.Spec.Models.VqVae; this runtime example is the executable reconstruction path.

CLI subcommand name used in terminal banners and error messages.

Instances For

    Default JSON loss-curve path for this command.

    Instances For

      Shared vector-image configuration.

      The VQ-VAE runtime path uses the same compact flattened-CIFAR boundary as the autoencoder and VAE commands, so the model comparison changes the bottleneck while keeping data handling fixed.

      Instances For
        @[reducible, inline]

        Input shape: a batch of flattened CIFAR image vectors.

        Instances For
          @[reducible, inline]

          Target shape: reconstructed flattened CIFAR image vectors.

          Instances For

            Trainable VQ-VAE-style vector model.

            The codebook-facing objective is handled in the imported spec/theory modules; this command exercises the executable reconstruction path with a narrow quantization-style bottleneck.

            Instances For

              Public singleton dataset for compact CIFAR reconstruction.

              Instances For

                Train the compact VQ-VAE-style model with the public Trainer surface.

                Instances For

                  Executable entrypoint for the compact VQ-VAE-style run.

                  The command loads a real CIFAR minibatch, trains the reconstruction objective, and records the same summary/log artifact format as the other public trainer commands.

                  Instances For