fffiloni commited on
Commit
e2e6da8
1 Parent(s): 2c58e02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -336,7 +336,7 @@ def propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_
336
  print(f"JPEG_IMAGES: {jpeg_images}")
337
 
338
  if vis_frame_type == "check":
339
- return gr.update(value=jpeg_images), gr.update(value=None), gr.update(choices=jpeg_images, value=jpeg_image[0])
340
  elif vis_frame_type == "render":
341
  # Create a video clip from the image sequence
342
  original_fps = get_video_fps(video_in)
@@ -404,8 +404,8 @@ with gr.Blocks() as demo:
404
  video_in = gr.Video(label="Video IN")
405
 
406
  with gr.Column():
407
- working_frame = gr.Dropdown(label="working frame ID", choices=None, value=None)
408
- output_result = gr.Image()
409
  with gr.Row():
410
  vis_frame_type = gr.Radio(label="Propagation level", choices=["check", "render"], value="check", scale=2)
411
  propagate_btn = gr.Button("Propagate", scale=1)
 
336
  print(f"JPEG_IMAGES: {jpeg_images}")
337
 
338
  if vis_frame_type == "check":
339
+ return gr.update(value=jpeg_images), gr.update(value=None), gr.update(choices=jpeg_images, value=jpeg_images[0], visible=True)
340
  elif vis_frame_type == "render":
341
  # Create a video clip from the image sequence
342
  original_fps = get_video_fps(video_in)
 
404
  video_in = gr.Video(label="Video IN")
405
 
406
  with gr.Column():
407
+ working_frame = gr.Dropdown(label="working frame ID", choices=None, value=None, visible=False)
408
+ output_result = gr.Image(label="current working mask ref")
409
  with gr.Row():
410
  vis_frame_type = gr.Radio(label="Propagation level", choices=["check", "render"], value="check", scale=2)
411
  propagate_btn = gr.Button("Propagate", scale=1)