lysandre HF staff commited on
Commit
e5e5100
1 Parent(s): 5cbbc02
Files changed (1) hide show
  1. 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, torch_dtype=torch.float16)
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
  )