How I Got Segmentation Masks from Object Detection | Teeth Segmentation tutorial
What if you could skip the painful process of manually labeling dental images — and still get pixel-perfect segmentation masks? In this video, I reveal how I used a YOLO object detection model and SAM2 (Segment Anything) to generate high-quality teeth segmentation masks — without drawing a single label by hand. You’ll learn how to: ✅ How to use auto_annotate() from Ultralytics ✅ Combine YOLOv11 or a custom YOLO model with SAM2 ✅ Automatically generate polygon segmentation masks ✅ Visualize the masks ✅ Apply this to custom dataset + custom model Download the code for the tutorial here : https://eranfeit.lemonsqueezy.com/checkout/buy/abf7def5-4c89-4207-a2df-f55eb5f51272 or here : https://ko-fi.com/s/f22a0d4ace Link to the full post and code here : https://eranfeit.net/heres-what-combining-yolov11-with-sam2-taught-me-about-segmentation/ You can find more computer vision tutorials in my blog page : https://eranfeit.net/blog/ Link to the post for Medium users : https://medium.com/image-segmentation-tutorials/heres-what-combining-yolov11-with-sam2-taught-me-about-segmentation-481861f26992 You can find more Visual Language models tutorials tutorials in this playlist : https://www.youtube.com/playlist?list=PLdkryDe59y4a2PRJda-Z7M7Sod7uQKT2d You can find more image Segmentation tutorials in this playlist : https://www.youtube.com/playlist?list=PLdkryDe59y4a0mid6wHQVeg-GDytXYv2F ~~~~~~~~~~~~~~~ recommended courses and books ~~~~~~~~~~~~~~~ 🚀 Want to get started with Computer Vision or take your skills to the next level ? Great Interactive Course : "Deep Learning for Images with PyTorch" here : https://datacamp.pxf.io/zxWxnm If you’re just beginning, I recommend this step-by-step course designed to introduce you to the foundations of Computer Vision : https://trk.udemy.com/9LoE7E If you’re already experienced and looking for more advanced techniques, check out this deep-dive course : https://trk.udemy.com/EEDyMD I also recommend this book, https://amzn.to/3GBMNLC : "Practical Machine Learning for Computer Vision" by Oreilly ~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~ ☕ Buy me a coffee - https://ko-fi.com/eranfeit 🖥️ Email : [email protected] 🌐 https://eranfeit.net 🤝 Fiverr : https://www.fiverr.com/s/mB3Pbb 🐦 Twitter - https://twitter.com/eran_feit 📸 Instagram - https://www.instagram.com/eran_feit/ ▶️ Subscribe - youtube.com/@eranfeit?sub_confirmation=1 🐙 Facebook - https://www.facebook.com/groups/3080601358933585 📝 Medium - https://medium.com/@feitgemel ~~~~~~~~~~~~~~ SUPPORT ME 🙏~~~~~~~~~~~~~~ 🅿 Patreon - https://www.patreon.com/EranFeit ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #EranFeit #yolov11 #sam2 ~~~~~~~~~~~~~~ Chapters ~~~~~~~~~~~~~ 00:00 Introduction and Demo 03:52 Installation 07:57 Generate masks based on Yolo11 weights 17:43 Display the result 20:23 Apply it on your own custom model ~~~~~~~~~~~~~~ Credits ~~~~~~~~~~~~~ Music by Vincent Rubinetti Download the music on Bandcamp: https://vincerubinetti.bandcamp.com/album/the-music-of-3blue1brown Stream the music on Spotify: https://open.spotify.com/album/1dVyjwS8FBqXhRunaG5W5u
Download
1 formatsVideo Formats
Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.