AndreasXi commited on
Commit
fbfb8b6
·
1 Parent(s): 3004bf1
Files changed (1) hide show
  1. meanaudio/model/flow_matching.py +3 -1
meanaudio/model/flow_matching.py CHANGED
@@ -66,6 +66,8 @@ class FlowMatching:
66
  flow = fn(t, x)
67
  next_t = steps[ti + 1]
68
  dt = next_t - t
69
- x = x + dt * flow
 
 
70
 
71
  return x
 
66
  flow = fn(t, x)
67
  next_t = steps[ti + 1]
68
  dt = next_t - t
69
+
70
+ # fix: we need to subtract the flow since we learn the reverse trajectory
71
+ x = x - dt * flow
72
 
73
  return x