charleselena commited on
Commit
d0be649
1 Parent(s): 081955a

replace dtype

Browse files
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -89,7 +89,7 @@ class EndpointHandler():
89
  self.pipe = StableDiffusionControlNetPipeline.from_pretrained(self.stable_diffusion_id,
90
  controlnet=self.controlnet,
91
  torch_dtype=dtype,
92
- safety_checker=StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker", torch_dtype=torch.float16)).to("cuda")
93
  # Define Generator with seed
94
  self.generator = torch.Generator(device=device.type).manual_seed(3)
95
 
 
89
  self.pipe = StableDiffusionControlNetPipeline.from_pretrained(self.stable_diffusion_id,
90
  controlnet=self.controlnet,
91
  torch_dtype=dtype,
92
+ safety_checker=StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker", torch_dtype=dtype)).to("cuda")
93
  # Define Generator with seed
94
  self.generator = torch.Generator(device=device.type).manual_seed(3)
95