conditional-flow-matching icon indicating copy to clipboard operation
conditional-flow-matching copied to clipboard

Example on computing logprob with the model

Open fountaindive opened this issue 9 months ago • 3 comments

Hi,

First of all this work is super impressive and thanks for doing it!

I asked about computing the density of a sample here. I was able to run this example notebook however, I couldn't figure out how to use the model in the following way

logprob = model.logprob(X)

For example, it would be really useful to be able evaluate the logprob of the model on any input sample if that makes sense!

This might be me not fully understanding the method but to evaluate the logprob do you have run the ODE solver for a sample going from the prior space to the target space? Or can you take a sample already in the target space and compute the logprob?

Thanks!

fountaindive avatar Jan 13 '25 17:01 fountaindive