Spaces:
Runtime error
Runtime error
Torch 16
Browse files- image_transformation.py +1 -1
image_transformation.py
CHANGED
@@ -62,7 +62,7 @@ class ImageTransformationTool(Tool):
|
|
62 |
if self.device is None:
|
63 |
self.device = get_default_device()
|
64 |
|
65 |
-
self.controlnet = ControlNetModel.from_pretrained(self.controlnet_checkpoint
|
66 |
self.pipeline = StableDiffusionControlNetPipeline.from_pretrained(
|
67 |
self.stable_diffusion_checkpoint, controlnet=self.controlnet, torch_dtype=torch.float16
|
68 |
)
|
|
|
62 |
if self.device is None:
|
63 |
self.device = get_default_device()
|
64 |
|
65 |
+
self.controlnet = ControlNetModel.from_pretrained(self.controlnet_checkpoint)
|
66 |
self.pipeline = StableDiffusionControlNetPipeline.from_pretrained(
|
67 |
self.stable_diffusion_checkpoint, controlnet=self.controlnet, torch_dtype=torch.float16
|
68 |
)
|