Update app.py
Browse files68 unmodified lines697071727374757 unmodified lines838485858687888956 unmodified lines14614714814915015115215315415517 unmodified lines17317417517117617717817918068 unmodified lines max_len: int = -1, target_fps: int = -1, max_res: int = 1280, grayscale: bool = False, output_dir: str = './outputs', input_size: int = 518,):7 unmodified lines processed_video_path = os.path.join(output_dir, os.path.splitext(video_name)[0]+'_src.mp4') depth_vis_path = os.path.join(output_dir, os.path.splitext(video_name)[0]+'_vis.mp4') save_video(frames, processed_video_path, fps=fps) save_video(depths, depth_vis_path, fps=fps, is_depths=True) save_video(depths, depth_vis_path, fps=fps, is_depths=True, grayscale=grayscale)
gc.collect() torch.cuda.empty_cache()56 unmodified lines value=1280, step=1, ) grayscale = gr.Checkbox( label="grayscale", value=False, ) generate_btn = gr.Button("Generate") with gr.Column(scale=2): pass17 unmodified lines input_video, max_len, target_fps, max_res max_res, grayscale ], outputs=[processed_video, depth_vis_video], )app.py+8-2