Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

video inference #6

Open
MELANCHOLY828 opened this issue Aug 16, 2024 · 5 comments
Open

video inference #6

MELANCHOLY828 opened this issue Aug 16, 2024 · 5 comments

Comments

@MELANCHOLY828
Copy link

I want to use it for video inference. Does the exported SAM2 encoder and decoder support it?

@ibaiGorordo
Copy link
Owner

Unfortunately no. It requires the memory part to be added. I think it is possible, but I gave up after trying for a while. The way the memory is recorded in the dictionary and passed away makes it a bit hard to decouple it from the rest of the code.

@bhack
Copy link

bhack commented Aug 19, 2024

I think the only opportunity is to pass the state:
huggingface/transformers#32394 (comment)

@alawasoft
Copy link

Would be great if the memory attention added to the onnx stacks

@bhack
Copy link

bhack commented Sep 30, 2024

If you are interested in video check facebookresearch/sam2#3 (comment)

@alawasoft
Copy link

If you are interested in video check facebookresearch/sam2#3 (comment)

any plans to update to Segment anything 2.1? great work btw.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants