Spaces:
Paused
Paused
Update web-demos/hugging_face/app.py
Browse files
web-demos/hugging_face/app.py
CHANGED
@@ -270,7 +270,7 @@ def vos_tracking_video(video_state, interactive_state, mask_dropdown):
|
|
270 |
video_state["logits"][video_state["select_frame_number"]:] = logits
|
271 |
video_state["painted_images"][video_state["select_frame_number"]:] = painted_images
|
272 |
|
273 |
-
video_output = generate_video_from_frames(video_state["painted_images"], output_path="./result/track/{}".format(video_state["video_name"]), fps=fps) # import video_input to name the output video
|
274 |
interactive_state["inference_times"] += 1
|
275 |
|
276 |
print("For generating this tracking result, inference times: {}, click times: {}, positive: {}, negative: {}".format(interactive_state["inference_times"],
|
@@ -321,7 +321,7 @@ def inpaint_video(video_state, resize_ratio_number, dilate_radius_number, raft_i
|
|
321 |
neighbor_length=neighbor_length_number,
|
322 |
ref_stride=ref_stride_number) # numpy array, T, H, W, 3
|
323 |
|
324 |
-
video_output = generate_video_from_frames(inpainted_frames, output_path="./result/inpaint/{}".format(video_state["video_name"]), fps=fps) # import video_input to name the output video
|
325 |
|
326 |
return video_output, operation_log, operation_log
|
327 |
|
|
|
270 |
video_state["logits"][video_state["select_frame_number"]:] = logits
|
271 |
video_state["painted_images"][video_state["select_frame_number"]:] = painted_images
|
272 |
|
273 |
+
video_output = generate_video_from_frames(video_state["painted_images"], output_path="./result/track/{}".format(video_state["video_name"]), fps=float(fps)) # import video_input to name the output video
|
274 |
interactive_state["inference_times"] += 1
|
275 |
|
276 |
print("For generating this tracking result, inference times: {}, click times: {}, positive: {}, negative: {}".format(interactive_state["inference_times"],
|
|
|
321 |
neighbor_length=neighbor_length_number,
|
322 |
ref_stride=ref_stride_number) # numpy array, T, H, W, 3
|
323 |
|
324 |
+
video_output = generate_video_from_frames(inpainted_frames, output_path="./result/inpaint/{}".format(video_state["video_name"]), fps=float(fps)) # import video_input to name the output video
|
325 |
|
326 |
return video_output, operation_log, operation_log
|
327 |
|