Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -292,8 +292,9 @@ def get_mask_sam_process(
|
|
292 |
# Assuming available_frames_to_check.value is a list
|
293 |
if working_frame not in available_frames_to_check:
|
294 |
available_frames_to_check.append(working_frame)
|
|
|
295 |
|
296 |
-
return "output_first_frame.jpg", frame_names, inference_state, gr.update(choices=available_frames_to_check
|
297 |
|
298 |
def propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_names, video_frames_dir, vis_frame_type, progress=gr.Progress(track_tqdm=True)):
|
299 |
#### PROPAGATION ####
|
|
|
292 |
# Assuming available_frames_to_check.value is a list
|
293 |
if working_frame not in available_frames_to_check:
|
294 |
available_frames_to_check.append(working_frame)
|
295 |
+
print(available_frames_to_check)
|
296 |
|
297 |
+
return "output_first_frame.jpg", frame_names, inference_state, gr.update(choices=available_frames_to_check, value=working_frame, visible=True)
|
298 |
|
299 |
def propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_names, video_frames_dir, vis_frame_type, progress=gr.Progress(track_tqdm=True)):
|
300 |
#### PROPAGATION ####
|