Spaces:
Build error
Build error
patrickvonplaten
commited on
Commit
•
0911685
1
Parent(s):
f5d0858
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(
|
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 |
|