Spaces:
Running
Running
fix: add binarize_model
Browse files
app.py
CHANGED
@@ -18,7 +18,8 @@ example_images = [
|
|
18 |
tasks = {
|
19 |
"unwrap": ["UVDoc", None],
|
20 |
"unshadow": ["GCDnet", None],
|
21 |
-
"unblur": ["OpenCvBilateral", "NAFDPM", None]
|
|
|
22 |
}
|
23 |
|
24 |
def process_image(img_path, unwrap_model, unshadow_model, binarize_model, unblur_model):
|
@@ -80,7 +81,7 @@ def main():
|
|
80 |
|
81 |
unwrap_dropdown = gr.Dropdown(label="Select Unwrap Model", choices=tasks["unwrap"], value="UVDoc")
|
82 |
unshadow_dropdown = gr.Dropdown(label="Select Unshadow Model", choices=tasks["unshadow"], value="GCDnet")
|
83 |
-
binarize_dropdown = gr.Dropdown(label="Select
|
84 |
unblur_dropdown = gr.Dropdown(label="Select Unblur Model", choices=tasks["unblur"], value="OpenCvBilateral")
|
85 |
|
86 |
run_button = gr.Button("summit")
|
|
|
18 |
tasks = {
|
19 |
"unwrap": ["UVDoc", None],
|
20 |
"unshadow": ["GCDnet", None],
|
21 |
+
"unblur": ["OpenCvBilateral", "NAFDPM", None],
|
22 |
+
"binarize": ["UnetCnn", None]
|
23 |
}
|
24 |
|
25 |
def process_image(img_path, unwrap_model, unshadow_model, binarize_model, unblur_model):
|
|
|
81 |
|
82 |
unwrap_dropdown = gr.Dropdown(label="Select Unwrap Model", choices=tasks["unwrap"], value="UVDoc")
|
83 |
unshadow_dropdown = gr.Dropdown(label="Select Unshadow Model", choices=tasks["unshadow"], value="GCDnet")
|
84 |
+
binarize_dropdown = gr.Dropdown(label="Select Binarize Model", choices=tasks["binarize"], value=None)
|
85 |
unblur_dropdown = gr.Dropdown(label="Select Unblur Model", choices=tasks["unblur"], value="OpenCvBilateral")
|
86 |
|
87 |
run_button = gr.Button("summit")
|