Spaces:
Running
on
T4
Running
on
T4
Update app.py
Browse files
app.py
CHANGED
@@ -392,15 +392,16 @@ def propagate_to_all(video_in, checkpoint, stored_inference_state, stored_frame_
|
|
392 |
codec='libx264'
|
393 |
)
|
394 |
|
|
|
|
|
395 |
mask_clip = ImageSequenceClip(masks_frames, fps=fps)
|
396 |
-
|
|
|
397 |
mask_final_vid_output_path = "mask_output_video.mp4"
|
398 |
|
399 |
-
# Write the
|
400 |
-
mask_clip.write_videofile(
|
401 |
-
|
402 |
-
codec='libx264'
|
403 |
-
)
|
404 |
|
405 |
return gr.update(value=None), gr.update(value=final_vid_output_path), working_frame, available_frames_to_check, gr.update(visible=True), mask_final_vid_output_path
|
406 |
|
|
|
392 |
codec='libx264'
|
393 |
)
|
394 |
|
395 |
+
|
396 |
+
# Create the video clip
|
397 |
mask_clip = ImageSequenceClip(masks_frames, fps=fps)
|
398 |
+
|
399 |
+
# Define the output file path
|
400 |
mask_final_vid_output_path = "mask_output_video.mp4"
|
401 |
|
402 |
+
# Write the video to a file
|
403 |
+
mask_clip.write_videofile(mask_final_vid_output_path, codec='libx264')
|
404 |
+
|
|
|
|
|
405 |
|
406 |
return gr.update(value=None), gr.update(value=final_vid_output_path), working_frame, available_frames_to_check, gr.update(visible=True), mask_final_vid_output_path
|
407 |
|