Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ def transparent_paste_with_mask(backimg, foreimg, mask_np,transparency = 128):
|
|
87 |
mask_np = mask_np[:,:,np.newaxis]
|
88 |
|
89 |
new_img_np = bimg_np*mask_np + (1-mask_np)* backimg_solid_np
|
90 |
-
return Image.fromarray(new_img_np)
|
91 |
|
92 |
def show_segmentation(image, segmentation, flag):
|
93 |
if flag is False:
|
|
|
87 |
mask_np = mask_np[:,:,np.newaxis]
|
88 |
|
89 |
new_img_np = bimg_np*mask_np + (1-mask_np)* backimg_solid_np
|
90 |
+
return Image.fromarray(np.uint8(new_img_np))
|
91 |
|
92 |
def show_segmentation(image, segmentation, flag):
|
93 |
if flag is False:
|