Segment Anything 2 (SAM 2) Ball Tracking and Real Time Code Demo!

  Рет қаралды 7,560

Kevin Wood | Robotics & AI

Kevin Wood | Robotics & AI

Күн бұрын

Пікірлер: 34
@kevinwoodrobotics
@kevinwoodrobotics 4 ай бұрын
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/
@deeplearningexplained
@deeplearningexplained 3 ай бұрын
Solid tutorial, I really enjoyed the coding part! 👍
@kevinwoodrobotics
@kevinwoodrobotics 3 ай бұрын
Thanks!
@davidlennear3112
@davidlennear3112 Ай бұрын
Excellent video. I want to do the same thing but for static images. Like floor plans. Any suggestions?
@kevinwoodrobotics
@kevinwoodrobotics Ай бұрын
Yeah it should work too. You just need to choose the seed appropriately and see how it performs
@Innovan3
@Innovan3 4 ай бұрын
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?
@kevinwoodrobotics
@kevinwoodrobotics 4 ай бұрын
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
@adlihs
@adlihs 4 ай бұрын
A stupid question: If you use it with players you can get coordinates x,y of player location?
@kevinwoodrobotics
@kevinwoodrobotics 4 ай бұрын
Yes that’s right
@williamshen4808
@williamshen4808 2 ай бұрын
Is it possible to use SAM2 to find the speed and acceleration of an object if you know how far its travelling?
@kevinwoodrobotics
@kevinwoodrobotics 2 ай бұрын
Yeah it should be. Would be an interesting application
@shailendrasingh6154
@shailendrasingh6154 3 ай бұрын
Can you please share a some steps to run demo locally in my APPLE M1 Pro , 16 GB memory ?
@kevinwoodrobotics
@kevinwoodrobotics 3 ай бұрын
The general flow should be similar as described in my doc with some minor MAC specific commands
@paulpolizzi3421
@paulpolizzi3421 4 ай бұрын
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!!!
@kevinwoodrobotics
@kevinwoodrobotics 4 ай бұрын
Yeah it’s pretty awesome! I haven’t tested that yet but would be an interesting test
@ashishreddy2634
@ashishreddy2634 4 ай бұрын
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.
@kevinwoodrobotics
@kevinwoodrobotics 4 ай бұрын
You can do semantic segmentation with sam2
@eltounytactics1585
@eltounytactics1585 Ай бұрын
Can I use this code to also track the players?
@kevinwoodrobotics
@kevinwoodrobotics Ай бұрын
Yeah should be
@BrunoEsteves-j9l
@BrunoEsteves-j9l 4 ай бұрын
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?
@kevinwoodrobotics
@kevinwoodrobotics 4 ай бұрын
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
@kumardeepam
@kumardeepam 3 ай бұрын
Hi Kevin, I need help getting the code to work. Whats the best way to reach you?
@kevinwoodrobotics
@kevinwoodrobotics 3 ай бұрын
Feel free to email me or message me over LinkedIn. Info in my bio
@deemon101
@deemon101 4 ай бұрын
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?
@kevinwoodrobotics
@kevinwoodrobotics 4 ай бұрын
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
@deemon101
@deemon101 4 ай бұрын
@@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
@kevinwoodrobotics
@kevinwoodrobotics 4 ай бұрын
@@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
@danialothman
@danialothman 4 ай бұрын
Hi Kevin, what is your PC specs?
@kevinwoodrobotics
@kevinwoodrobotics 4 ай бұрын
I have an i7 with 16 gb of ram using a 1650 ti
@kumardeepam
@kumardeepam 3 ай бұрын
than you for this video.
@lillol3245
@lillol3245 3 ай бұрын
really? money for the code?
@kevinwoodrobotics
@kevinwoodrobotics 3 ай бұрын
Yes
@KarmikBarodia-co7sq
@KarmikBarodia-co7sq 2 ай бұрын
@@kevinwoodrobotics why can't you provide the code
AI process thousands of videos?! - SAM2 deep dive 101
12:57
AI Jason
Рет қаралды 15 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
СИНИЙ ИНЕЙ УЖЕ ВЫШЕЛ!❄️
01:01
DO$HIK
Рет қаралды 3,3 МЛН
Unveiling Meta's Impressive CV Model: Sam 2
12:00
Sam Witteveen
Рет қаралды 38 М.
SAM 2 | Segment Anything Model 2
32:13
Code With Aarohi
Рет қаралды 6 М.
How does Segment Anything 2 (SAM 2) work? Paper and Network Architecture Explained!
15:41
Google’s Quantum Chip: Did We Just Tap Into Parallel Universes?
9:34
YOLOv10 Custom Dataset Training Object Detection Brain Tumors
10:56
Kevin Wood | Robotics & AI
Рет қаралды 3,5 М.
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН