EdgeTAM icon indicating copy to clipboard operation
EdgeTAM copied to clipboard

Run in Streaming Mode

Open arshdeep-liat-ai opened this issue 1 year ago • 3 comments

Is there a way to run this on a video in streaming manner rather than processing the whole video at once?

arshdeep-liat-ai avatar Jun 24 '25 14:06 arshdeep-liat-ai

+1 I am also interested in this. Thanks.

pranay-junare avatar Oct 15 '25 04:10 pranay-junare

yes, online mode would help immensely

sourav-bz avatar Dec 21 '25 21:12 sourav-bz

@arshdeep-liat-ai @pranay-junare @sourav-bz I've implemented exactly this — a streaming mode where you process one frame at a time with constant memory usage.

The pipeline works as: provide a point prompt on frame 1, then feed subsequent frames one by one. A ring-buffer memory bank (7 frames) keeps memory bounded, so it works on arbitrarily long videos without loading anything upfront.

It's an iOS-native implementation (CoreML + Metal), designed for real-time camera feeds:

  • GitHub: https://github.com/chenweisomebody126/SegmentKit
  • Docs: https://segmentkit.dev

The key API is just startTracking(frame:, point:) for the first frame, then track(frame:) for every frame after that.

chenweisomebody126 avatar Apr 17 '26 04:04 chenweisomebody126