facebookresearch / sam2

The repository provides code for running inference with the Meta Segment Anything Model 2 (SAM 2), links for downloading the trained model checkpoints, and example notebooks that show how to use the model.
Apache License 2.0
11.86k stars 1.05k forks source link

Live video usage #4

Open tval2 opened 2 months ago

tval2 commented 2 months ago

I'm trying to highlight a single object I click on in a live video feed. Is there a way to do that with SAM 2?

Side question: is there a discord or place to discuss these types of questions with devs or is this the best forum?

Hard-bitten commented 2 months ago

I also want to know how to do this

Aqua12138 commented 2 months ago

I also want to know how to do this

Gy920 commented 2 months ago

I have implemented a simple demo of building SAM2 on a live video stream, which can be found at https://github.com/Gy920/segment-anything-2-real-time. However, there are still some issues (such as only being able to set the object to be segmented in the first frame).