Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -346,7 +346,7 @@ def propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_
|
|
| 346 |
print(f"JPEG_IMAGES: {jpeg_images}")
|
| 347 |
|
| 348 |
if vis_frame_type == "check":
|
| 349 |
-
return gr.update(value=jpeg_images), gr.update(value=None), gr.update(choices=jpeg_images, value=jpeg_images[0], visible=
|
| 350 |
elif vis_frame_type == "render":
|
| 351 |
# Create a video clip from the image sequence
|
| 352 |
original_fps = get_video_fps(video_in)
|
|
@@ -453,12 +453,14 @@ with gr.Blocks() as demo:
|
|
| 453 |
queue = False
|
| 454 |
)
|
| 455 |
|
|
|
|
| 456 |
working_frame.change(
|
| 457 |
fn = switch_working_frame,
|
| 458 |
inputs = [working_frame, scanned_frames, video_frames_dir],
|
| 459 |
outputs = [first_frame_path, tracking_points, trackings_input_label, input_first_frame_image, points_map],
|
| 460 |
queue=False
|
| 461 |
)
|
|
|
|
| 462 |
|
| 463 |
submit_btn.click(
|
| 464 |
fn = sam_process,
|
|
|
|
| 346 |
print(f"JPEG_IMAGES: {jpeg_images}")
|
| 347 |
|
| 348 |
if vis_frame_type == "check":
|
| 349 |
+
return gr.update(value=jpeg_images), gr.update(value=None), gr.update(choices=jpeg_images, value=jpeg_images[0], visible=False)
|
| 350 |
elif vis_frame_type == "render":
|
| 351 |
# Create a video clip from the image sequence
|
| 352 |
original_fps = get_video_fps(video_in)
|
|
|
|
| 453 |
queue = False
|
| 454 |
)
|
| 455 |
|
| 456 |
+
"""
|
| 457 |
working_frame.change(
|
| 458 |
fn = switch_working_frame,
|
| 459 |
inputs = [working_frame, scanned_frames, video_frames_dir],
|
| 460 |
outputs = [first_frame_path, tracking_points, trackings_input_label, input_first_frame_image, points_map],
|
| 461 |
queue=False
|
| 462 |
)
|
| 463 |
+
"""
|
| 464 |
|
| 465 |
submit_btn.click(
|
| 466 |
fn = sam_process,
|