conditional-flow-matching
conditional-flow-matching copied to clipboard
Incorrect implementation of `TargetConditionalFlowMatcher`
Hey,
I've been experimenting with Conditional Flow Matching for a paper I'm currently working on and I've noticed that you have an incorrect implementation of TargetConditionalFlowMatcher, in particular, the sample_xt and compute_conditional_flow methods. The current implementation (rewritten 1:1 in Jax) completely fails to learn even the simplest distributions.
I believe that sample_xt should use x0 instead of epsilon and compute_conditional_flow should return x1 - (1 - self.sigma) * x0 instead of what it currently returns.
Hope this helps ;)