jadechoghari commited on
Commit
483dce0
1 Parent(s): 2e7920c

Update pipeline.py

Browse files
Files changed (1) hide show
  1. pipeline.py +2 -2
pipeline.py CHANGED
@@ -29,7 +29,7 @@ class VidToMePipeline(DiffusionPipeline):
29
  self.pipe = pipe
30
  self.scheduler = scheduler
31
  self.model_key = model_key
32
- self.device = device
33
 
34
  def __call__(self, video_path=None, video_prompt=None, edit_prompt=None,
35
  control_type="none", n_timesteps=50, guidance_scale=7.5,
@@ -87,7 +87,7 @@ class VidToMePipeline(DiffusionPipeline):
87
  'global_merge_ratio': global_merge_ratio
88
  },
89
  'seed': seed,
90
- 'device': self.device,
91
  'float_precision': self.float_precision
92
  }
93
  return config
 
29
  self.pipe = pipe
30
  self.scheduler = scheduler
31
  self.model_key = model_key
32
+ super().__init__()
33
 
34
  def __call__(self, video_path=None, video_prompt=None, edit_prompt=None,
35
  control_type="none", n_timesteps=50, guidance_scale=7.5,
 
87
  'global_merge_ratio': global_merge_ratio
88
  },
89
  'seed': seed,
90
+ 'device': "cuda",
91
  'float_precision': self.float_precision
92
  }
93
  return config