Spaces:
Runtime error
Runtime error
Update app.py
Browse files249 unmodified lines250251252253254255256159 unmodified lines416417418419420421422423424425426427428429430431432433434249 unmodified linesplt.close()torch.cuda.empty_cache()return "output_first_frame.jpg", frame_names, inference_state, new_working_framedef propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_names, video_frames_dir, vis_frame_type, progress=gr.Progress(track_tqdm=True)):#### PROPAGATION ####159 unmodified linesqueue = False)working_frame.change(fn = switch_working_frame,inputs = [working_frame, scanned_frames, video_frames_dir],outputs = [first_frame_path, tracking_points, trackings_input_label, input_first_frame_image, points_map, working_frame],queue=False)submit_btn.click(fn = sam_process,inputs = [input_first_frame_image, checkpoint, tracking_points, trackings_input_label, video_frames_dir, scanned_frames, working_frame],outputs = [output_result, stored_frame_names, stored_inference_state, working_frame])propagate_btn.click(249 unmodified lines250251252253254255256159 unmodified lines416417418419420421422423424425426427428429430431432433434249 unmodified linesplt.close()torch.cuda.empty_cache()return "output_first_frame.jpg", frame_names, inference_statedef propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_names, video_frames_dir, vis_frame_type, progress=gr.Progress(track_tqdm=True)):#### PROPAGATION ####159 unmodified linesqueue = False)"""working_frame.change(fn = switch_working_frame,inputs = [working_frame, scanned_frames, video_frames_dir],outputs = [first_frame_path, tracking_points, trackings_input_label, input_first_frame_image, points_map, working_frame],queue=False)"""submit_btn.click(fn = sam_process,inputs = [input_first_frame_image, checkpoint, tracking_points, trackings_input_label, video_frames_dir, scanned_frames, working_frame],outputs = [output_result, stored_frame_names, stored_inference_state])propagate_btn.click(
app.py+4-4