fffiloni commited on
Commit
3b1cf4c
·
verified ·
1 Parent(s): f8f9211

Update skyreels_v2_infer/pipelines/text2video_pipeline.py

Browse files
skyreels_v2_infer/pipelines/text2video_pipeline.py CHANGED
@@ -83,7 +83,7 @@ class Text2VideoPipeline:
83
 
84
  # evaluation mode
85
  self.transformer.to(self.device)
86
- with torch.cuda.amp.autocast(dtype=self.transformer.dtype), torch.no_grad():
87
  self.scheduler.set_timesteps(num_inference_steps, device=self.device, shift=shift)
88
  timesteps = self.scheduler.timesteps
89
 
 
83
 
84
  # evaluation mode
85
  self.transformer.to(self.device)
86
+ with torch.amp.autocast("cuda", dtype=self.transformer.dtype), torch.no_grad():
87
  self.scheduler.set_timesteps(num_inference_steps, device=self.device, shift=shift)
88
  timesteps = self.scheduler.timesteps
89