Skip to content

Conversation

@siromermer
Copy link

@siromermer siromermer commented Oct 9, 2025

Summary

This PR adds a new section to the video_predictor_example.ipynb notebook that saves segmented frames as a video file.

The notebook is designed for processing videos, but originally it only outputs a dictionary of masks without producing a video.
Adding a cell to save the frames in MP4 format makes it easier to visualize the segmentation results.

Testing

Tested with multiple videos locally — the generated MP4 files work as expected, with blue masks correctly overlayed.

@meta-cla meta-cla bot added the cla signed label Oct 9, 2025
@siromermer
Copy link
Author

Hi @ronghanghu 👋
I’ve made some updates in this PR and would appreciate it if you could review them when you have time.
I thought it would be useful to add a video saving option after performing SAM2 segmentation on video input.
Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant