hpoghos commited on
Commit
870500e
1 Parent(s): 62db519

Update t2v_enhanced/model/video_ldm.py

Browse files
Files changed (1) hide show
  1. t2v_enhanced/model/video_ldm.py +1 -1
t2v_enhanced/model/video_ldm.py CHANGED
@@ -242,7 +242,7 @@ class VideoLDM(pl.LightningModule):
242
  else:
243
  latents = None
244
  if idx == 0:
245
- sample = cfg["video"]
246
  else:
247
  if inference_params.conditioning_type == "fixed":
248
  context = chunks_conditional[0][:self.unet_params.num_frame_conditioning]
 
242
  else:
243
  latents = None
244
  if idx == 0:
245
+ sample = cfg["video"].to(self.device)
246
  else:
247
  if inference_params.conditioning_type == "fixed":
248
  context = chunks_conditional[0][:self.unet_params.num_frame_conditioning]