Update app.py
Browse files
app.py
CHANGED
|
@@ -62,13 +62,15 @@ def infer(
|
|
| 62 |
|
| 63 |
# 默认图像路径
|
| 64 |
example_images = [
|
| 65 |
-
"
|
| 66 |
-
"
|
| 67 |
-
"
|
| 68 |
-
"
|
| 69 |
-
"
|
| 70 |
-
"
|
| 71 |
-
"
|
|
|
|
|
|
|
| 72 |
]
|
| 73 |
|
| 74 |
# css = """
|
|
@@ -115,7 +117,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 115 |
input_image = gr.Image(label="Input Image", type="pil", elem_id="img-display-input")
|
| 116 |
with gr.Column():
|
| 117 |
# depth_img_slider = ImageSlider(label="Depth Map with Slider View", elem_id="img-display-output", position=0.5)
|
| 118 |
-
depth_map = gr.Image(label="Depth
|
| 119 |
|
| 120 |
# 计算按钮
|
| 121 |
compute_button = gr.Button(value="Compute Depth")
|
|
|
|
| 62 |
|
| 63 |
# 默认图像路径
|
| 64 |
example_images = [
|
| 65 |
+
"in-the-wild_example-1/00.jpg",
|
| 66 |
+
"in-the-wild_example-1/01.jpg",
|
| 67 |
+
"in-the-wild_example-1/02.jpg",
|
| 68 |
+
"in-the-wild_example-1/03.jpg",
|
| 69 |
+
"in-the-wild_example-1/04.jpg",
|
| 70 |
+
"in-the-wild_example-1/05.jpg",
|
| 71 |
+
"in-the-wild_example-1/06.jpg",
|
| 72 |
+
"in-the-wild_example-1/07.jpg",
|
| 73 |
+
"in-the-wild_example-1/08.jpg",
|
| 74 |
]
|
| 75 |
|
| 76 |
# css = """
|
|
|
|
| 117 |
input_image = gr.Image(label="Input Image", type="pil", elem_id="img-display-input")
|
| 118 |
with gr.Column():
|
| 119 |
# depth_img_slider = ImageSlider(label="Depth Map with Slider View", elem_id="img-display-output", position=0.5)
|
| 120 |
+
depth_map = gr.Image(label="Depth Image", type="pil", interactive=False, elem_id="depth-map")
|
| 121 |
|
| 122 |
# 计算按钮
|
| 123 |
compute_button = gr.Button(value="Compute Depth")
|