Update app.py
Browse files71 unmodified lines727374757677777879808171 unmodified lines grayscale: bool = False, output_dir: str = './outputs', input_size: int = 518, progress=gr.Progress()): frames, target_fps = read_video_frames(input_video, max_len, target_fps, max_res) depths, fps = video_depth_anything.infer_video_depth(frames, target_fps, input_size=input_size, device=DEVICE) depths, fps = video_depth_anything.infer_video_depth(frames, target_fps, input_size=input_size, device=DEVICE, progress=progress.tqdm)
video_name = os.path.basename(input_video) if not os.path.exists(output_dir):app.py+2-1