IceClear commited on
Commit
303cd3c
·
1 Parent(s): 1957115
projects/video_diffusion_sr/infer.py CHANGED
@@ -41,7 +41,7 @@ from models.dit_v2 import na
41
  class VideoDiffusionInfer():
42
  def __init__(self, config: DictConfig):
43
  self.config = config
44
- self.device = "cuda" if torch.cuda.is_available() else "cpu"
45
 
46
  def get_condition(self, latent: Tensor, latent_blur: Tensor, task: str) -> Tensor:
47
  t, h, w, c = latent.shape
 
41
  class VideoDiffusionInfer():
42
  def __init__(self, config: DictConfig):
43
  self.config = config
44
+ self.device = "cuda"
45
 
46
  def get_condition(self, latent: Tensor, latent_blur: Tensor, task: str) -> Tensor:
47
  t, h, w, c = latent.shape