Skip to content

Commit

Permalink
hotfix optimal transport flow matching with conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
LarsKue committed Sep 9, 2024
1 parent e167ddd commit e5a78c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bayesflow/networks/flow_matching/flow_matching.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def compute_metrics(

# use weak regularization and low number of steps for efficiency
if self.use_optimal_transport:
x0, x1 = optimal_transport(x0, x1, seed=self.seed_generator, **self.optimal_transport_kwargs)
x1, x0 = optimal_transport(x1, x0, seed=self.seed_generator, **self.optimal_transport_kwargs)

t = keras.random.uniform((keras.ops.shape(x0)[0],), seed=self.seed_generator)
t = expand_right_as(t, x0)
Expand Down

0 comments on commit e5a78c4

Please sign in to comment.