facebookresearch/flow_matching
A PyTorch library for implementing flow matching algorithms, supporting both continuous and discrete flow matching with examples for image and text generation.

This repository provides a comprehensive PyTorch implementation of flow matching algorithms, which are generative modeling techniques used to train models by interpolating between distributions. The library includes both continuous and discrete flow matching implementations, along with practical examples demonstrating applications in image generation and text generation. It serves as the codebase companion to the Flow Matching Guide paper.