charleselena
commited on
replace dtype
Browse files- 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=
|
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 |
|