Learn Computer Vision using AI: kevinwoodrobotics.com/product/computer-vision-using-ai/ Code and Doc: kevinwoodrobotics.com/product/segment-anything-2-sam-2-ball-tracking-and-real-time-code-demo/
@deeplearningexplained3 ай бұрын
Solid tutorial, I really enjoyed the coding part! 👍
@kevinwoodrobotics3 ай бұрын
Thanks!
@davidlennear3112Ай бұрын
Excellent video. I want to do the same thing but for static images. Like floor plans. Any suggestions?
@kevinwoodroboticsАй бұрын
Yeah it should work too. You just need to choose the seed appropriately and see how it performs
@Innovan34 ай бұрын
I cant seem to find any minimum specs to run this model on the website, what hardware specs would you recommend to run this in real time at 30 or the full 44 frames per second?
@kevinwoodrobotics4 ай бұрын
the tiny model is about 2x faster than the large model which i showed in my video. For reference, I'm using a i7 with 16 gb of ram and a pretty weak gpu 1650 Ti. I think with a more powerful gpu like the 40xx series and the tiny model might be able to meet your performance needs, but as with anything best to test it out since you program can also influence the performance
@adlihs4 ай бұрын
A stupid question: If you use it with players you can get coordinates x,y of player location?
@kevinwoodrobotics4 ай бұрын
Yes that’s right
@williamshen48082 ай бұрын
Is it possible to use SAM2 to find the speed and acceleration of an object if you know how far its travelling?
@kevinwoodrobotics2 ай бұрын
Yeah it should be. Would be an interesting application
@shailendrasingh61543 ай бұрын
Can you please share a some steps to run demo locally in my APPLE M1 Pro , 16 GB memory ?
@kevinwoodrobotics3 ай бұрын
The general flow should be similar as described in my doc with some minor MAC specific commands
@paulpolizzi34214 ай бұрын
This looks amazing, how long can you track the ball? will it track it for the whole half of the game? cant wait to see what else you can do? awesome!!!
@kevinwoodrobotics4 ай бұрын
Yeah it’s pretty awesome! I haven’t tested that yet but would be an interesting test
@ashishreddy26344 ай бұрын
Hi Kevin, I have a trained YOLO detection model and I am trying to develop the tracking dataset for my project. Just curios to know that can we do only bboxes tracking using SAM2 ? Cause so far I am using CVAT for annotating the videos in track mode and it is a time taking process. Any suggestions would be helpful. Thank you.
@kevinwoodrobotics4 ай бұрын
You can do semantic segmentation with sam2
@eltounytactics1585Ай бұрын
Can I use this code to also track the players?
@kevinwoodroboticsАй бұрын
Yeah should be
@BrunoEsteves-j9l4 ай бұрын
Would it be possible to use it in a use case where I want to identify in a poker game not only where the cards are but what specific cards are on the table?
@kevinwoodrobotics4 ай бұрын
I think yolo might be better for this, but would have to try. I think for some cards where they look different enough it should work with SAM2 but if they are too similar it may get confused like the example with the horses
@kumardeepam3 ай бұрын
Hi Kevin, I need help getting the code to work. Whats the best way to reach you?
@kevinwoodrobotics3 ай бұрын
Feel free to email me or message me over LinkedIn. Info in my bio
@deemon1014 ай бұрын
Ok, but it seems like the difference between yolo and SAM is that with yolo, I can train it to detect a specific object and it doesn't matter which video or image I feed to it, it will keep detecting that object that I trained it to detect. Can this be done with SAM 2 too?
@kevinwoodrobotics4 ай бұрын
That’s a good point! You’re right for general detection yolo will still be needed. But for a single video SAM2 would work. The two can probably be combined to help with tracking
@deemon1014 ай бұрын
@@kevinwoodrobotics yeah, I guess this has already been done with the first SAM model here: kzbin.info/www/bejne/j5W6qJaVm9xjr7Msi=g5cgk3EJbHIIbqIG But then, I'm not sure why would I use both SAM and Yolo if yolo technically is doing the same thing just.. you have to train it first. I guess in the end SAM 2 is simply for different use case. Edit: ok maybe it's useful for faster segmentation annotation jobs as you can just draw boxes around the things you want to segment in yolo, then combine yolo with SAM 2, and magic happens... hmm
@kevinwoodrobotics4 ай бұрын
@@deemon101 yeah besides the speed you get with sam2, the other main benefit is yolo by itself sometimes struggle with tracking when there’s occlusion which sam2 solves
@danialothman4 ай бұрын
Hi Kevin, what is your PC specs?
@kevinwoodrobotics4 ай бұрын
I have an i7 with 16 gb of ram using a 1650 ti
@kumardeepam3 ай бұрын
than you for this video.
@lillol32453 ай бұрын
really? money for the code?
@kevinwoodrobotics3 ай бұрын
Yes
@KarmikBarodia-co7sq2 ай бұрын
@@kevinwoodrobotics why can't you provide the code