lllyasviel commited on
Commit
8807b2d
·
1 Parent(s): 0b72417
sgm/modules/diffusionmodules/openaimodel.py CHANGED
@@ -985,7 +985,7 @@ class UNetModel(nn.Module):
985
 
986
  if self.num_classes is not None:
987
  assert y.shape[0] == x.shape[0]
988
- emb = emb + self.label_emb(y)
989
 
990
  # h = x.type(self.dtype)
991
  h = x
 
985
 
986
  if self.num_classes is not None:
987
  assert y.shape[0] == x.shape[0]
988
+ emb = emb + self.label_emb(y.to(x))
989
 
990
  # h = x.type(self.dtype)
991
  h = x