patrickvonplaten
commited on
Commit
•
f5d0858
1
Parent(s):
ed1d8d0
fix
Browse files- 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=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(device=self.device)
|
72 |
if self.device.type == "cuda":
|
73 |
self.pipeline.to(torch_dtype=torch.float16)
|
74 |
|