facebookresearch / facebookresearch/sam2

Large video and loading in batches

Open
#545 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jupyter Notebook
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I want to segment very large video files - and have come across https://github.com/facebookresearch/sam2/issues/264 for possible solutions.
Running with `vos_optimized=True` gives me some headache (https://github.com/facebookresearch/sam2/issues/501).

I wonder if there is an easier way to handle these things that is also more general. For example, is it possible to load the video in batches and somehow make use of the memory created for one tracked batch in the next, etc.?
What would have to be done to do that?
If I initiate only like the first 100 frames of one video (let's say it has 10,000 frames total), what are the issues here for loading and predicting in batches.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.