Skip to content

VigneshSrinivasan10/flow-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

100 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow Visualizer

Visualizations of flow-based generative models that learn to transform Gaussian noise into structured data distributions.

Flow Matching

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.

Trajectory Curvature

Probability Path

Rectified Flow

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.

Rectified Flow Trajectory Curvature

Rectified Flow Probability Path

Usage

Train flow matching model:

uv run fv-train
uv run fv-visualize

Train rectified flow model (requires trained base model):

uv run rf-train
uv run rf-visualize

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages