Spaces:
Sleeping
Sleeping
Update utils/tools_gradio.py
Browse files- utils/tools_gradio.py +2 -1
utils/tools_gradio.py
CHANGED
|
@@ -89,7 +89,8 @@ def fast_process(
|
|
| 89 |
overlay_contour = Image.fromarray((contour_mask * 255).astype(np.uint8), "RGBA")
|
| 90 |
image.paste(overlay_contour, (0, 0), overlay_contour)
|
| 91 |
|
| 92 |
-
return image
|
|
|
|
| 93 |
|
| 94 |
|
| 95 |
# CPU post process
|
|
|
|
| 89 |
overlay_contour = Image.fromarray((contour_mask * 255).astype(np.uint8), "RGBA")
|
| 90 |
image.paste(overlay_contour, (0, 0), overlay_contour)
|
| 91 |
|
| 92 |
+
# return image
|
| 93 |
+
return inner_mask
|
| 94 |
|
| 95 |
|
| 96 |
# CPU post process
|