Skip to content

Commit 1cf070f

Browse files
committed
add fm schedule
1 parent 493d794 commit 1cf070f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bayesflow/networks/flow_matching/flow_matching.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def compute_metrics(
312312

313313
u = keras.random.uniform((keras.ops.shape(x0)[0],), seed=self.seed_generator)
314314
# p(t) ∝ t^(1/(1+α)), the inverse CDF: F^(-1)(u) = u^(1+α), α=0 is uniform
315-
t = u ** (1 + self.alpha)
315+
t = u ** (1 + self.time_sampling_alpha)
316316
t = expand_right_as(t, x0)
317317

318318
x = t * x1 + (1 - t) * x0

0 commit comments

Comments
 (0)