Commit a9e9664
committed
Refactor optimal transport logic in flow matching.
Updated the optimal transport implementation to prioritize resampling x1 due to potential data noise and outliers, ensuring better stability across batches. Adjusted conditions to align properly with assignments returned by the optimal transport function. These changes improve robustness and clarity in the resampling process.1 parent 41690de commit a9e9664
1 file changed
+13
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
259 | | - | |
260 | | - | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
261 | 269 | | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
262 | 273 | | |
263 | 274 | | |
264 | 275 | | |
| |||
0 commit comments