Spaces:
Running
on
Zero
Running
on
Zero
Update edit_space.py
Browse files- edit_space.py +2 -2
edit_space.py
CHANGED
|
@@ -303,7 +303,7 @@ class KontextEditModel():
|
|
| 303 |
|
| 304 |
original_image_tensor = image.clone()
|
| 305 |
original_mask = remove_mask
|
| 306 |
-
original_mask = self._expand_mask(remove_mask, expand=
|
| 307 |
|
| 308 |
image_pil = self._tensor_to_pil(image)
|
| 309 |
# image_pil.save("image_pil.png")
|
|
@@ -340,7 +340,7 @@ class KontextEditModel():
|
|
| 340 |
seed, steps, cfg):
|
| 341 |
generator = torch.Generator(device=self.device).manual_seed(seed)
|
| 342 |
original_image_tensor = image.clone()
|
| 343 |
-
original_mask = self._expand_mask(fill_mask, expand=
|
| 344 |
image_pil = self._tensor_to_pil(image)
|
| 345 |
# image_pil.save("image_pil.png")
|
| 346 |
|
|
|
|
| 303 |
|
| 304 |
original_image_tensor = image.clone()
|
| 305 |
original_mask = remove_mask
|
| 306 |
+
original_mask = self._expand_mask(remove_mask, expand=10)
|
| 307 |
|
| 308 |
image_pil = self._tensor_to_pil(image)
|
| 309 |
# image_pil.save("image_pil.png")
|
|
|
|
| 340 |
seed, steps, cfg):
|
| 341 |
generator = torch.Generator(device=self.device).manual_seed(seed)
|
| 342 |
original_image_tensor = image.clone()
|
| 343 |
+
original_mask = self._expand_mask(fill_mask, expand=10)
|
| 344 |
image_pil = self._tensor_to_pil(image)
|
| 345 |
# image_pil.save("image_pil.png")
|
| 346 |
|