Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -360,25 +360,26 @@ with gr.Blocks() as demo:
|
|
360 |
4. Submit !
|
361 |
""")
|
362 |
with gr.Row():
|
|
|
363 |
with gr.Column():
|
|
|
|
|
|
|
364 |
input_first_frame_image = gr.Image(label="input image", interactive=False, type="filepath", visible=False)
|
365 |
points_map = gr.Image(
|
366 |
-
label="
|
367 |
type="filepath",
|
368 |
interactive=False
|
369 |
)
|
370 |
-
video_in = gr.Video(label="Video IN")
|
371 |
with gr.Row():
|
372 |
-
|
373 |
-
|
374 |
-
checkpoint = gr.Dropdown(label="Checkpoint", choices=["tiny", "small", "base-plus", "large"], value="tiny")
|
375 |
-
submit_btn = gr.Button("Submit", size="lg")
|
376 |
with gr.Column():
|
377 |
output_result = gr.Image()
|
378 |
with gr.Row():
|
379 |
-
vis_frame_type = gr.Radio(choices=["check", "render"], value="check", scale=2)
|
380 |
propagate_btn = gr.Button("Propagate", scale=1)
|
381 |
-
output_propagated = gr.Gallery(visible=False)
|
382 |
output_video = gr.Video(visible=False)
|
383 |
# output_result_mask = gr.Image()
|
384 |
|
|
|
360 |
4. Submit !
|
361 |
""")
|
362 |
with gr.Row():
|
363 |
+
video_in = gr.Video(label="Video IN")
|
364 |
with gr.Column():
|
365 |
+
with gr.Row():
|
366 |
+
point_type = gr.Radio(label="point type", choices=["include", "exclude"], value="include")
|
367 |
+
clear_points_btn = gr.Button("Clear Points")
|
368 |
input_first_frame_image = gr.Image(label="input image", interactive=False, type="filepath", visible=False)
|
369 |
points_map = gr.Image(
|
370 |
+
label="Point n Click map",
|
371 |
type="filepath",
|
372 |
interactive=False
|
373 |
)
|
|
|
374 |
with gr.Row():
|
375 |
+
checkpoint = gr.Dropdown(label="Checkpoint", choices=["tiny", "small", "base-plus", "large"], value="tiny")
|
376 |
+
submit_btn = gr.Button("Submit", size="lg")
|
|
|
|
|
377 |
with gr.Column():
|
378 |
output_result = gr.Image()
|
379 |
with gr.Row():
|
380 |
+
vis_frame_type = gr.Radio(label="Propagation level", choices=["check", "render"], value="check", scale=2)
|
381 |
propagate_btn = gr.Button("Propagate", scale=1)
|
382 |
+
output_propagated = gr.Gallery(label="Propagated Mask samples gallery", visible=False)
|
383 |
output_video = gr.Video(visible=False)
|
384 |
# output_result_mask = gr.Image()
|
385 |
|