Spaces:
Runtime error
Runtime error
Commit
·
bacb750
1
Parent(s):
3476985
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,8 @@ def inference(file, af, mask, model):
|
|
26 |
model, new_session(model)
|
27 |
),
|
28 |
alpha_matting_erode_size = af,
|
29 |
-
only_mask = (True if mask == "Mask only" else False)
|
|
|
30 |
)
|
31 |
o.write(output)
|
32 |
return os.path.join("output.png")
|
|
|
26 |
model, new_session(model)
|
27 |
),
|
28 |
alpha_matting_erode_size = af,
|
29 |
+
only_mask = (True if mask == "Mask only" else False),
|
30 |
+
post_process_mask = True
|
31 |
)
|
32 |
o.write(output)
|
33 |
return os.path.join("output.png")
|