Spaces:
Build error
Build error
Update app.py
Browse files55 unmodified lines56575859606162143 unmodified lines2062072082092102112125 unmodified lines21821922022122222322455 unmodified linesvideo_length = 201W = 1024H = Wdevice = "cpu"def get_pipe_image_and_video_predictor():vae = AutoencoderKLWan.from_pretrained("./model/vae", torch_dtype=torch.float16)143 unmodified linesheight=height,width=width,num_inference_steps=int(num_inference_steps),generator=torch.Generator(device="cuda").manual_seed(random_seed),iterations=int(dilation_iterations)).frames[0]5 unmodified linesclip.write_videofile(video_file, codec='libx264', audio=False, verbose=False, logger=None)return video_filedef track_video(n_frames, video_state):input_points = video_state["input_points"]55 unmodified lines56575859606162143 unmodified lines2062072082092102112125 unmodified lines21821922022122222322455 unmodified linesvideo_length = 201W = 1024H = Wdevice = "cuda"def get_pipe_image_and_video_predictor():vae = AutoencoderKLWan.from_pretrained("./model/vae", torch_dtype=torch.float16)143 unmodified linesheight=height,width=width,num_inference_steps=int(num_inference_steps),generator=torch.Generator(device=device).manual_seed(random_seed),iterations=int(dilation_iterations)).frames[0]5 unmodified linesclip.write_videofile(video_file, codec='libx264', audio=False, verbose=False, logger=None)return video_file@spaces.GPU(duration=200)def track_video(n_frames, video_state):input_points = video_state["input_points"]
app.py+3-3