NOTE: report.pdf contains the comprehensive report.
This repository contains scripts for training, analyzing, and visualizing Diffusion Transformer (DiT) models for image generation.
-
dit_models.py: Core DiT model classes and utilities. Import this in other scripts; do not run directly.
-
run_experiments.py: Trains DiT models from scratch with different hyperparameters. Saves results and checkpoints.
- Run:
python run_experiments.py
- Run:
-
analyze_experiments.py: Analyzes experiment results and generates plots from the CSV output of training.
- Run:
python analyze_experiments.py experiments/<timestamp>/experiment_results.csv
- Run:
-
dit_pretrained_using_pixelart.py: Uses a pretrained PixArt-XL-2-512x512 model with DDIM sampling and classifier-free guidance (CFG). Visualizes the denoising process and CFG effects.
- Run:
python dit_pretrained_using_pixelart.py
- Run:
-
visualize_trained_models.py: Loads your trained DiT models and creates 10x10 grids showing the denoising evolution.
- Run:
python visualize_trained_models.py
- Run:
-
dit_pretrained_and_cfg_using_sd.py: Variant using Stable Diffusion as the backend for pretrained DiT-based visualization and CFG analysis.
- Run:
python dit_pretrained_and_cfg_using_sd.py
- Run: