update
Browse files
    	
        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 | 
            -
             | 
|  | |
|  | |
| 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
         |