patrickvonplaten commited on
Commit
0911685
1 Parent(s): f5d0858
Files changed (1) hide show
  1. image_transformation.py +1 -1
image_transformation.py CHANGED
@@ -68,7 +68,7 @@ class ImageTransformationTool(Tool):
68
  )
69
  self.pipeline.scheduler = UniPCMultistepScheduler.from_config(self.pipeline.scheduler.config)
70
 
71
- self.pipeline.to(device=self.device)
72
  if self.device.type == "cuda":
73
  self.pipeline.to(torch_dtype=torch.float16)
74
 
 
68
  )
69
  self.pipeline.scheduler = UniPCMultistepScheduler.from_config(self.pipeline.scheduler.config)
70
 
71
+ self.pipeline.to(self.device)
72
  if self.device.type == "cuda":
73
  self.pipeline.to(torch_dtype=torch.float16)
74