forked from mrq/DL-Art-School
eval bug fix
This commit is contained in:
parent
84469f3538
commit
89bd40d39f
|
@ -234,6 +234,8 @@ class TransformerDiffusionWithQuantizer(nn.Module):
|
||||||
diff = self.diff(x, timesteps, codes=proj, conditioning_input=conditioning_input,
|
diff = self.diff(x, timesteps, codes=proj, conditioning_input=conditioning_input,
|
||||||
conditioning_free=conditioning_free)
|
conditioning_free=conditioning_free)
|
||||||
|
|
||||||
|
if disable_diversity:
|
||||||
|
return diff
|
||||||
if mse is None:
|
if mse is None:
|
||||||
return diff, diversity_loss
|
return diff, diversity_loss
|
||||||
return diff, diversity_loss, mse
|
return diff, diversity_loss, mse
|
||||||
|
|
Loading…
Reference in New Issue
Block a user