Spaces:
Build error
Build error
Update app.py
Browse files177 unmodified lines17817918018118118218318434 unmodified lines219220221222222223224225177 unmodified lines arr_masks = np.stack(out_masks) return torch.from_numpy(arr_images).half(), torch.from_numpy(arr_masks).half()
@spaces.GPU(duration=200)@spaces.GPU(duration=100)def inference_and_return_video(dilation_iterations, num_inference_steps, video_state): if video_state["origin_images"] is None or video_state["masks"] is None: return None34 unmodified lines clip.write_videofile(video_file, codec='libx264', audio=False, verbose=False, logger=None) return video_file
@spaces.GPU(duration=100)@spaces.GPU(duration=60)def track_video(n_frames,video_state): input_points = video_state["input_points"] input_labels = video_state["input_labels"]app.py+2-2