Unconditional Image Generation

DigitDreamer

DigitDreamer is a rectified flow Latent Diffusion Model (LDM) designed for generating MNIST digits with high fidelity. The project combines an F-16 autoencoder (non-KL) with a DiT diffusion model, leveraging a GAN loss during autoencoder training to improve reconstruction quality.

Model Overview

DigitDreamer consists of two main components:

  1. Autoencoder: Compresses and reconstructs MNIST digits, trained with both reconstruction and GAN loss for improved detail and realism.
  2. DiT Diffusion Model: Generates realistic digits in the latent space extracted by the autoencoder. This model operates on compressed latent representations, making it efficient while preserving image fidelity.

The autoencoder incorporates unique downsampling and upsampling layers, inspired by the Channel-to-space and Space-to-channel configurations as described in Deep Compression Autoencoder for Efficient High-Resolution Diffusion Models.

Training Pipeline

Autoencoder Training

  • Dataset: The model was initially trained for 20 epochs on an augmented MNIST dataset, providing it with a diverse range of digit variations. Fine-tuning for 2 epochs on the original MNIST dataset sharpened and refined the reconstructions.
  • Losses: The autoencoder was optimized with a combination of reconstruction loss and GAN loss, resulting in more realistic and detailed digit representations.

DiT Diffusion Training

  • Dataset: Trained for 10 epochs on the latent representations extracted from the autoencoder, the DiT diffusion model learns to generate coherent digit structures within the latent space.
  • Architecture: A standard, but smaller, version of the DiT model was used to maintain efficiency while ensuring high-quality outputs.

Results

Reconstruction Quality

The autoencoder's reconstruction quality demonstrates high fidelity, retaining essential features of the original digits while minimizing artifacts.

Reconstruction

Generated Samples

The DiT model generates realistic and varied samples in the latent space, showcasing the model's capacity to create high-quality MNIST digits.

Generated Sample 1

Generated Sample 2

Generated Sample 3

References

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference API
Unable to determine this model's library. Check the docs .

Dataset used to train karanravindra/digitdreamer

Space using karanravindra/digitdreamer 1