Skip to content

Commit fde17e2

Browse files
authored
fix scm (#590)
1 parent d13da56 commit fde17e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bayesflow/experimental/stable_consistency_model/stable_consistency_model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def compute_metrics(
307307
r = 1.0 # TODO: if consistency distillation training (not supported yet) is unstable, add schedule here
308308

309309
def f_teacher(x, t):
310-
o = self._apply_subnet(x / self.sigma, self.time_emb(t), conditions, training=stage == "training")
310+
o = self._apply_subnet(x, self.time_emb(t), conditions, training=stage == "training")
311311
return self.subnet_projector(o)
312312

313313
primals = (xt / self.sigma, t)
@@ -321,7 +321,7 @@ def f_teacher(x, t):
321321
cos_sin_dFdt = ops.stop_gradient(cos_sin_dFdt)
322322

323323
# calculate output of the network
324-
subnet_out = self._apply_subnet(x / self.sigma, self.time_emb(t), conditions, training=stage == "training")
324+
subnet_out = self._apply_subnet(xt / self.sigma, self.time_emb(t), conditions, training=stage == "training")
325325
student_out = self.subnet_projector(subnet_out)
326326

327327
# calculate the tangent

0 commit comments

Comments
 (0)