Visualizations of flow-based generative models that learn to transform Gaussian noise into structured data distributions.
Flow Matching learns a velocity field that transports samples from a simple prior (Gaussian) to a target data distribution. The model is trained to predict the velocity at any point along the interpolation path between noise and data. During sampling, we integrate this learned velocity field using Euler steps to generate new samples.
Rectified Flow straightens the trajectories learned by flow matching. It works by generating coupled pairs (noise, generated sample) from a trained base model, then retraining on these pairs to learn straighter paths. Straighter trajectories allow for faster sampling with fewer integration steps while maintaining sample quality.
Train flow matching model:
uv run fv-train
uv run fv-visualizeTrain rectified flow model (requires trained base model):
uv run rf-train
uv run rf-visualize


