Spaces:
Runtime error
Runtime error
default value of guided filter is 8
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def dynamic_clean_adverse(
|
|
24 |
eps_min: float = 16.0,
|
25 |
eps_max: float = 24.0,
|
26 |
b_iters: int = 64,
|
27 |
-
g_iters: int =
|
28 |
):
|
29 |
img = np.array(input_image).astype(np.float32)
|
30 |
y = img.copy()
|
@@ -58,7 +58,7 @@ def clean(
|
|
58 |
eps_min: float = 16.0,
|
59 |
eps_max: float = 24.0,
|
60 |
b_iters: int = 64,
|
61 |
-
g_iters: int =
|
62 |
|
63 |
use_scunet_clean: bool = False,
|
64 |
use_nafnet_clean: bool = False
|
@@ -152,8 +152,8 @@ if __name__ == '__main__':
|
|
152 |
label="Bilateral Filter Iters (default = 64)", interactive=True,
|
153 |
)
|
154 |
gr_g_iters = gr.Slider(
|
155 |
-
minimum=1, maximum=32, step=1, value=
|
156 |
-
label="Guided Filter Iters (default =
|
157 |
)
|
158 |
|
159 |
with gr.Accordion("Extra Restoration", open=False):
|
|
|
24 |
eps_min: float = 16.0,
|
25 |
eps_max: float = 24.0,
|
26 |
b_iters: int = 64,
|
27 |
+
g_iters: int = 8,
|
28 |
):
|
29 |
img = np.array(input_image).astype(np.float32)
|
30 |
y = img.copy()
|
|
|
58 |
eps_min: float = 16.0,
|
59 |
eps_max: float = 24.0,
|
60 |
b_iters: int = 64,
|
61 |
+
g_iters: int = 8,
|
62 |
|
63 |
use_scunet_clean: bool = False,
|
64 |
use_nafnet_clean: bool = False
|
|
|
152 |
label="Bilateral Filter Iters (default = 64)", interactive=True,
|
153 |
)
|
154 |
gr_g_iters = gr.Slider(
|
155 |
+
minimum=1, maximum=32, step=1, value=8,
|
156 |
+
label="Guided Filter Iters (default = 8)", interactive=True,
|
157 |
)
|
158 |
|
159 |
with gr.Accordion("Extra Restoration", open=False):
|