Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ def compute_metrics(
r = 1.0 # TODO: if consistency distillation training (not supported yet) is unstable, add schedule here

def f_teacher(x, t):
o = self._apply_subnet(x / self.sigma, self.time_emb(t), conditions, training=stage == "training")
o = self._apply_subnet(x, self.time_emb(t), conditions, training=stage == "training")
return self.subnet_projector(o)

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

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

# calculate the tangent
Expand Down