Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -62,15 +62,18 @@ gr.Interface(
|
|
62 |
default="isnet-general-use",
|
63 |
label="Models"
|
64 |
),
|
|
|
|
|
|
|
65 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Alpha Influence"),
|
66 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Segmentation Strength"),
|
67 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Smoothing"),
|
68 |
],
|
69 |
gr.outputs.Image(type="PIL", label="Output"),
|
70 |
-
#description = "<a href='https://huggingface.co/spaces/KenjieDec/RemBG' target='_blank'>Original article made by KenjieDec</a><a href='https://github.com/danielgatis/rembg' target='_blank'>Github Repo</a></p>"
|
71 |
title=title,
|
72 |
description=description,
|
73 |
article=article,
|
74 |
-
examples=[["lion.png", "Default", "u2net", 0.5, 0.5, 0.5], ["girl.jpg", "Default", "u2net", 0.5, 0.5, 0.5], ["anime-girl.jpg", "Default", "isnet-anime", 0.5, 0.5, 0.5]],
|
75 |
enable_queue=True
|
76 |
).launch()
|
|
|
|
62 |
default="isnet-general-use",
|
63 |
label="Models"
|
64 |
),
|
65 |
+
gr.inputs.Slider(minimum=0, maximum=255, default=240, label="Alpha Matting Foreground Threshold"), # Ajusta el umbral del primer plano
|
66 |
+
gr.inputs.Slider(minimum=0, maximum=255, default=10, label="Alpha Matting Background Threshold"), # Ajusta el umbral del fondo
|
67 |
+
gr.inputs.Slider(minimum=0, maximum=50, default=10, label="Alpha Matting Erode Size"), # Ajusta el tamaño de erosión
|
68 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Alpha Influence"),
|
69 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Segmentation Strength"),
|
70 |
gr.inputs.Slider(minimum=0.0, maximum=1.0, default=0.5, label="Smoothing"),
|
71 |
],
|
72 |
gr.outputs.Image(type="PIL", label="Output"),
|
|
|
73 |
title=title,
|
74 |
description=description,
|
75 |
article=article,
|
76 |
+
examples=[["lion.png", "Default", "u2net", 240, 10, 10, 0.5, 0.5, 0.5], ["girl.jpg", "Default", "u2net", 240, 10, 10, 0.5, 0.5, 0.5], ["anime-girl.jpg", "Default", "isnet-anime", 240, 10, 10, 0.5, 0.5, 0.5]],
|
77 |
enable_queue=True
|
78 |
).launch()
|
79 |
+
|