8000 GitHub - aleksandrinvictor/flow-matching: Simple reimplementation of Flow Matching for Generative Modeling (https://arxiv.org/abs/2210.02747) paper in PyTorch
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

aleksandrinvictor/flow-matching

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flow Matching

This repo contains simple reimplementation of Flow Matching paper: Lipman, Yaron, et al

Data

To train our model we used MNIST dataset.

Setup

Pip

pip install -r requirements.txt

Training

python src/train.py

There is a couple of settings you may want to specify:

  • --batch_size - set depending on your gpu memory available
  • --num_epochs - num epoch to train the model
  • --lr - learning rate
  • --device - which device to use
  • --output_path - path to save training artefacts

Inference

python src/inference.py

There is a couple of settings you may want to specify:

  • --checkpoint_filepath - path to pretrained model
  • --num_samples - how many samples to generate
  • --device - which device to use
  • --output_path - filepath to save result image

Results

Generated samples

References

[1] Flow Matching for Generative Modeling.

[2] TorchCFM: a Conditional Flow Matching library.

About

Simple reimplementation of Flow Matching for Generative Modeling (https://arxiv.org/abs/2210.02747) paper in PyTorch

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0