fffiloni commited on
Commit
fc57062
·
verified ·
1 Parent(s): a6c72d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -399,7 +399,7 @@ def reset_propagation(first_frame_path, predictor, stored_inference_state):
399
 
400
  predictor.reset_state(stored_inference_state)
401
  print(f"RESET State: {stored_inference_state} ")
402
- return first_frame_path, gr.update(value=None, visible=False), stored_inference_state, None, ["frame_0.jpg"], first_frame_path, "frame_0.jpg", gr.update(visible=False)
403
 
404
  with gr.Blocks() as demo:
405
  first_frame_path = gr.State()
@@ -545,7 +545,7 @@ with gr.Blocks() as demo:
545
  reset_prpgt_brn.click(
546
  fn = reset_propagation,
547
  inputs = [first_frame_path, loaded_predictor, stored_inference_state],
548
- outputs = [points_map, output_propagated, stored_inference_state, output_result, available_frames_to_check, input_first_frame_image, working_frame, reset_prpgt_brn],
549
  queue=False
550
  )
551
 
 
399
 
400
  predictor.reset_state(stored_inference_state)
401
  print(f"RESET State: {stored_inference_state} ")
402
+ return first_frame_path, gr.State([]), gr.State([]), gr.update(value=None, visible=False), stored_inference_state, None, ["frame_0.jpg"], first_frame_path, "frame_0.jpg", gr.update(visible=False)
403
 
404
  with gr.Blocks() as demo:
405
  first_frame_path = gr.State()
 
545
  reset_prpgt_brn.click(
546
  fn = reset_propagation,
547
  inputs = [first_frame_path, loaded_predictor, stored_inference_state],
548
+ outputs = [points_map, tracking_points, tracking_input_label, output_propagated, stored_inference_state, output_result, available_frames_to_check, input_first_frame_image, working_frame, reset_prpgt_brn],
549
  queue=False
550
  )
551