Spaces:
Runtime error
Runtime error
Update inpainting.py
#20
by
ArieSmiles2222
- opened
- inpainting.py +1 -2
inpainting.py
CHANGED
@@ -185,8 +185,7 @@ class StableDiffusionInpaintingPipeline(DiffusionPipeline):
|
|
185 |
image = image.cpu().permute(0, 2, 3, 1).numpy()
|
186 |
|
187 |
# run safety checker
|
188 |
-
|
189 |
-
image, has_nsfw_concept = self.safety_checker(images=image, clip_input=safety_cheker_input.pixel_values)
|
190 |
|
191 |
if output_type == "pil":
|
192 |
image = self.numpy_to_pil(image)
|
|
|
185 |
image = image.cpu().permute(0, 2, 3, 1).numpy()
|
186 |
|
187 |
# run safety checker
|
188 |
+
|
|
|
189 |
|
190 |
if output_type == "pil":
|
191 |
image = self.numpy_to_pil(image)
|