Update app.py
Browse files
app.py
CHANGED
@@ -607,7 +607,6 @@ def draw_mask(l, t, th, v, d, evt: gr.EventData):
|
|
607 |
res = center[label.flatten()]
|
608 |
bg = res.reshape((bg.shape))
|
609 |
|
610 |
-
bg[bd>th] = 0
|
611 |
bg[mask>0] = 0
|
612 |
bg[bg==255] = 0
|
613 |
|
|
|
607 |
res = center[label.flatten()]
|
608 |
bg = res.reshape((bg.shape))
|
609 |
|
|
|
610 |
bg[mask>0] = 0
|
611 |
bg[bg==255] = 0
|
612 |
|