no safety
Browse files- handler.py +3 -1
handler.py
CHANGED
@@ -88,7 +88,9 @@ class EndpointHandler():
|
|
88 |
self.pipe = StableDiffusionControlNetPipeline.from_pretrained(self.stable_diffusion_id,
|
89 |
controlnet=self.controlnet,
|
90 |
torch_dtype=dtype,
|
91 |
-
safety_checker=
|
|
|
|
|
92 |
|
93 |
|
94 |
# Define Generator with seed
|
|
|
88 |
self.pipe = StableDiffusionControlNetPipeline.from_pretrained(self.stable_diffusion_id,
|
89 |
controlnet=self.controlnet,
|
90 |
torch_dtype=dtype,
|
91 |
+
safety_checker=Node).to(device)
|
92 |
+
|
93 |
+
#StableDiffusionSafetyChecker.from_pretrained("CompVis/stable-diffusion-safety-checker")
|
94 |
|
95 |
|
96 |
# Define Generator with seed
|