Commit
·
a170026
1
Parent(s):
f5089bc
fix: fix indentation line 338 using Python script
Browse files- api/main.py +1 -1
api/main.py
CHANGED
|
@@ -335,7 +335,7 @@ def inpaint_multipart(
|
|
| 335 |
log.info("Successfully created black/white mask: %d white pixels (to remove), %d black pixels (to keep)",
|
| 336 |
nonzero, binmask.shape[0] * binmask.shape[1] - nonzero)
|
| 337 |
else:
|
| 338 |
-
|
| 339 |
|
| 340 |
# When mask_is_painted=true, we create white=remove masks, so invert_mask should be False
|
| 341 |
# (white pixels should stay white to indicate removal)
|
|
|
|
| 335 |
log.info("Successfully created black/white mask: %d white pixels (to remove), %d black pixels (to keep)",
|
| 336 |
nonzero, binmask.shape[0] * binmask.shape[1] - nonzero)
|
| 337 |
else:
|
| 338 |
+
mask_rgba = _load_rgba_mask_from_image(m)
|
| 339 |
|
| 340 |
# When mask_is_painted=true, we create white=remove masks, so invert_mask should be False
|
| 341 |
# (white pixels should stay white to indicate removal)
|