Spaces:
Runtime error
Runtime error
Cabeza69420
commited on
Commit
•
0525415
1
Parent(s):
b5d3ac5
Update inpainting.py
Browse files- inpainting.py +1 -4
inpainting.py
CHANGED
@@ -184,10 +184,7 @@ class StableDiffusionInpaintingPipeline(DiffusionPipeline):
|
|
184 |
image = (image / 2 + 0.5).clamp(0, 1)
|
185 |
image = image.cpu().permute(0, 2, 3, 1).numpy()
|
186 |
|
187 |
-
|
188 |
-
safety_cheker_input = self.feature_extractor(self.numpy_to_pil(image), return_tensors="pt").to(self.device)
|
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)
|
193 |
|
|
|
184 |
image = (image / 2 + 0.5).clamp(0, 1)
|
185 |
image = image.cpu().permute(0, 2, 3, 1).numpy()
|
186 |
|
187 |
+
|
|
|
|
|
|
|
188 |
if output_type == "pil":
|
189 |
image = self.numpy_to_pil(image)
|
190 |
|