EvanTHU commited on
Commit
0ef5446
1 Parent(s): 3af97fd

Update models/unet.py

Browse files
Files changed (1) hide show
  1. models/unet.py +3 -0
models/unet.py CHANGED
@@ -879,8 +879,11 @@ class MotionCLR(nn.Module):
879
  self.clip_model.dtype
880
  ) # [len, batch_size, 512]
881
 
 
882
  x = self.embed_text(x) # [len, batch_size, 256]
 
883
  x = self.textTransEncoder(x)
 
884
  x = self.text_ln(x)
885
 
886
  # T, B, D -> B, T, D
 
879
  self.clip_model.dtype
880
  ) # [len, batch_size, 512]
881
 
882
+ self.embed_text = self.embed_text.to(device)
883
  x = self.embed_text(x) # [len, batch_size, 256]
884
+ self.textTransEncoder = self.textTransEncoder.to(device)
885
  x = self.textTransEncoder(x)
886
+ self.text_ln = self.text_ln.to(device)
887
  x = self.text_ln(x)
888
 
889
  # T, B, D -> B, T, D