Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have a simple question for generating samples... #133

Open
KinamSalad opened this issue Aug 21, 2024 · 1 comment
Open

I have a simple question for generating samples... #133

KinamSalad opened this issue Aug 21, 2024 · 1 comment

Comments

@KinamSalad
Copy link

KinamSalad commented Aug 21, 2024

I am getting a lot of help from this project. Thank you! I have one question. Is the method for generating samples(ex images) with models trained using the FM framework the same as that of basic CFM and Exact OT CFM? I wonder if it is possible to sample in the same way (e.g., Euler or Midpoint) even when using Exact OT CFM. Currently, this project seems to be using something called NeuralODE from torchdyn, but it's difficult to understand because it's wrapped like this. If I use Exact OT CFM, do I need to start with noise that has been sampled using the Exact OT sampler?

@kilianFatras
Copy link
Collaborator

  1. The FM method (detnoted TargetConditionalFlowMatcher) has to be trained between a Gaussian and your data distribution. CFM and OT-CFM can be trained between any p_0 distribution and your data distribution.

  2. You can generate data from any source samples with OT-CFM. See the turotial https://github.com/atong01/conditional-flow-matching/blob/main/examples/2D_tutorials/Flow_matching_tutorial.ipynb.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants