Spaces:
Running
Running
Change mask dilatation and blur value
Browse files
app.py
CHANGED
@@ -57,9 +57,9 @@ def compute_mask(
|
|
57 |
# Prepare inputs
|
58 |
inputs: dict = {
|
59 |
"input_image": f"data:image/png;base64,{image_base64}",
|
60 |
-
"dilation_1_iterations":
|
61 |
-
"dilation_2_iterations":
|
62 |
-
"mask_blur_amount":
|
63 |
}
|
64 |
|
65 |
# Call ComfyDeploy API
|
|
|
57 |
# Prepare inputs
|
58 |
inputs: dict = {
|
59 |
"input_image": f"data:image/png;base64,{image_base64}",
|
60 |
+
"dilation_1_iterations": 10,
|
61 |
+
"dilation_2_iterations": 15,
|
62 |
+
"mask_blur_amount": 0,
|
63 |
}
|
64 |
|
65 |
# Call ComfyDeploy API
|