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

How's the speed on V100 with 720p videos? #7

Open
MonolithFoundation opened this issue Sep 3, 2024 · 7 comments
Open

How's the speed on V100 with 720p videos? #7

MonolithFoundation opened this issue Sep 3, 2024 · 7 comments

Comments

@MonolithFoundation
Copy link

How's the speed on V100 with 720p videos?

@Gy920
Copy link
Owner

Gy920 commented Sep 3, 2024

Sorry, I haven't tested this on V100.

@MonolithFoundation
Copy link
Author

MonolithFoundation commented Sep 3, 2024 via email

@heyoeyo
Copy link

heyoeyo commented Sep 6, 2024

How's the speed on V100 with 720p videos?

I'm not sure about the V100 either, but it should roughly be within a factor of 2 slower than the speeds reported on the original repo. So somewhere in the range of 10-25 fps, depending on which model you're using.

The input video resolution (e.g. 720p) doesn't matter much, since the model will resize any input to 1024px (by default). You can get a ~4x speedup if you reduce that size to 512 though!

@maxmelichov
Copy link

@heyoeyo I'm using 4060 and getting about 8 fps on live video
the drop is about 5 times
did you change something in the code to get a drop of just a factor of 2?

@heyoeyo
Copy link

heyoeyo commented Oct 7, 2024

@maxmelichov The speeds reported on the original repo seem to be based off an A100 GPU. The factor of 2 is (roughly) the difference between the A100 and V100 (based on the memory bandwidth of the two cards + other benchmarks).

The 4060 has a memory bandwidth that is ~7 times lower than the A100, so if you're getting speeds 5x slower than the reported speeds, that's probably normal.

@maxmelichov
Copy link

@heyoeyo do you know about TensorRT version of sam2?

@heyoeyo
Copy link

heyoeyo commented Oct 7, 2024

I haven't tried it myself, but there was some discussion of using TensorRT on the SAM2 repo (issue #284). At the very least, there are onnx versions of the model available, which seems to be the first step towards making a TensorRT version.

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