{"embed":false,"podcast":"Latent Space: The AI Engineer Podcast","podcast_slug":"Latent-Space-The-AI-Engineer-Podcast","tags":[],"thumbnail_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","episode":"Segment Anything 2: Demo-first Model Development","episode_slug":"Latent-Space-The-AI-Engineer-Podcast-Segment-Anything-2-Demo-first-Model-Development","description":"Because of the nature of SAM, this is more video heavy than usual. See our YouTube!Because vision is first among equals in multimodality, and yet SOTA vision language models are closed, we’ve always had an interest in learning what’s next in vision. Our first viral episode was Segment Anything 1, and we have since covered LLaVA, IDEFICS, Adept, and Reka. But just like with Llama 3, FAIR holds a special place in our hearts as the New Kings of Open Source AI.The list of sequels better than the originals is usually very short, but SAM 2 delighted us by not only being a better image segmentation model than SAM 1, it also conclusively and inexpensively solved video segmentation in just an elegant a way as SAM 1 did for images, and releasing everything to the community as Apache 2/CC by 4.0.“In video segmentation, we observe better accuracy, using 3x fewer interactions than prior approaches. In image segmentation, our model is more accurate and 6x faster than the Segment Anything Model (SAM).”Surprisingly EfficientThe paper reports that SAM 2 was trained on 256 A100 GPUs for 108 hours (59% more than SAM 1). Taking the upper end $2 A100 cost off gpulist.ai means SAM2 cost ~$50k to train if it had an external market-rate cost - surprisingly cheap for adding video understanding!The newly released SA-V dataset is also the largest video segment dataset to date, with careful attention given to scene/object/geographical diversity, including that of annotators. In some ways, we are surprised that SOTA video segmentation can be done on only ~50,000 videos (and 640k masklet annotations). Model-in-the-loop Data Engine for Annotations and Demo-first DevelopmentSimilar to SAM 1, a 3 Phase Data Engine helped greatly in bootstrapping this dataset. As Nikhila says in the episode, the demo you see wasn’t just for show, they actually used this same tool to do annotations for the model that is now demoed in the tool:“With the original SAM, we put a lot of effort in building a high-quality demo. And the other piece here is that the demo is actually the annotation tool. So we actually use the demo as a way to improve our annotation tool. And so then it becomes very natural to invest in building a good demo because it speeds up your annotation. and improve the data quality, and that will improve the model quality. With this approach, we found it to be really successful.”An incredible 90% speedup in annotation happened due to this virtuous cycle which helped SA-V reach this incredible scale.Building the demo also helped the team live the context that their own downstream users, like Roboflow, would experience, and forced them to make choices accordingly.As Nikhila says:“It's a really encouraging trend for not thinking about only the new model capability, but what sort of applications folks want to build with models as a result of that downstream.I think it also really forces you to think about many things that you might postpone. For example, efficiency. For a good demo experience, making it real time is super important. No one wants to wait. And so it really forces you to think about these things much sooner and actually makes us think about what kind of image encoder we want to use or other things. hardware efficiency improvements. So those kind of …","release_date":"7 Aug 2024","episode_embed_code":"<iframe src=\"https://api.pastimeapp.com/embed/Latent-Space-The-AI-Engineer-Podcast-Segment-Anything-2-Demo-first-Model-Development\" height=\"170px\" width=\"100%\" style=\"width: 1px; min-width: 100%; border: 1px dashed rgba(0,0,0,0.1); border-radius: 10px\" frameborder=\"0\" scrolling=\"no\" loading=\"lazy\"></iframe>","episode_share_url":"https://api.pastimeapp.com/ep/Latent-Space-The-AI-Engineer-Podcast-Segment-Anything-2-Demo-first-Model-Development","podcast_share_url":"https://api.pastimeapp.com/pod/Latent-Space-The-AI-Engineer-Podcast","audio_url":"https://api.substack.com/feed/podcast/147418165/89acd1fe0db26f14578c27572bfb68f6.mp3","ads":[],"meta":{"title":"Latent Space: The AI Engineer Podcast: Segment Anything 2: Demo-first Model Development","description":"From Latent Space: The AI Engineer Podcast. Because of the nature of SAM, this is more video heavy than usual. See our YouTube!Because vision is first among equals in multimodality, and yet SOTA vision language models are closed, we’ve always had an interest in learning what’s next in vision. Our first viral episode was Segment Anything 1, and we have since covered LLaVA, IDEFICS, Adept, and Reka. But just like with Llama 3, FAIR holds a special place in our hearts as the New Kings of Open Source AI.The list of sequels better than the originals is usually very short, but SAM 2 delighted us by not only being a better image segmentation model than SAM 1, it also conclusively and inexpensively solved video segmentation in just an elegant a way as SAM 1 did for images, and releasing everything to the community as Apache 2/CC by 4.0.“In video segmentation, we observe better accuracy, using 3x fewer interactions than prior approaches. In image segmentation, our model is more accurate and 6x faster than the Segment Anything Model (SAM).”Surprisingly EfficientThe paper reports that SAM 2 was trained on 256 A100 GPUs for 108 hours (59% more than SAM 1). Taking the upper end $2 A100 cost off gpulist.ai means SAM2 cost ~$50k to train if it had an external market-rate cost - surprisingly cheap for adding video understanding!The newly released SA-V dataset is also the largest video segment dataset to date, with careful attention given to scene/object/geographical diversity, including that of annotators. In some ways, we are surprised that SOTA video segmentation can be done on only ~50,000 videos (and 640k masklet annotations). Model-in-the-loop Data Engine for Annotations and Demo-first DevelopmentSimilar to SAM 1, a 3 Phase Data Engine helped greatly in bootstrapping this dataset. As Nikhila says in the episode, the demo you see wasn’t just for show, they actually used this same tool to do annotations for the model that is now demoed in the tool:“With the original SAM, we put a lot of effort in building a high-quality demo. And the other piece here is that the demo is actually the annotation tool. So we actually use the demo as a way to improve our annotation tool. And so then it becomes very natural to invest in building a good demo because it speeds up your annotation. and improve the data quality, and that will improve the model quality. With this approach, we found it to be really successful.”An incredible 90% speedup in annotation happened due to this virtuous cycle which helped SA-V reach this incredible scale.Building the demo also helped the team live the context that their own downstream users, like Roboflow, would experience, and forced them to make choices accordingly.As Nikhila says:“It's a really encouraging trend for not thinking about only the new model capability, but what sort of applications folks want to build with models as a result of that downstream.I think it also really forces you to think about many things that you might postpone. For example, efficiency. For a good demo experience, making it real time is super important. No one wants to wait. And so it really forces you to think about these things much sooner and actually makes us think about what kind of image encoder we want to use or other things. hardware efficiency improvements. So those kind of …","image":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","twitter":{"card_type":"summary"}},"episode_data":{"id":1816537292,"guid":"substack:post:147418165","slug":"Latent-Space-The-AI-Engineer-Podcast-Segment-Anything-2-Demo-first-Model-Development","title":"Segment Anything 2: Demo-first Model Development","alias":null,"description":"<p><em>Because of the nature of SAM, this is more video heavy than usual. </em><a target=\"_blank\" href=\"https://www.youtube.com/watch?v=lOO_gH4kAn8\" rel=\"noreferrer\"><em>See our YouTube</em></a><em>!</em></p><p>Because vision is first among equals in multimodality, and yet SOTA vision language models are closed, we’ve always had an interest in learning what’s next in vision. </p><p>Our first viral episode was <a target=\"_blank\" href=\"https://www.latent.space/p/segment-anything-roboflow\" rel=\"noreferrer\">Segment Anything 1</a>, and we have since covered <a target=\"_blank\" href=\"https://www.latent.space/p/neurips-2023-papers\" rel=\"noreferrer\">LLaVA</a>, <a target=\"_blank\" href=\"https://www.latent.space/p/idefics\" rel=\"noreferrer\">IDEFICS</a>, <a target=\"_blank\" href=\"https://www.latent.space/p/adept\" rel=\"noreferrer\">Adept</a>, and <a target=\"_blank\" href=\"https://www.latent.space/p/yitay\" rel=\"noreferrer\">Reka</a>. But just like with <a target=\"_blank\" href=\"https://www.latent.space/p/llama-3\" rel=\"noreferrer\">Llama 3</a>, FAIR holds a special place in our hearts as the <a target=\"_blank\" href=\"https://www.latent.space/p/q2-2024-recap\" rel=\"noreferrer\">New</a> Kings of Open Source AI.</p><p>The list of <a target=\"_blank\" href=\"https://time.com/5353143/sequels-better-than-original/\" rel=\"noreferrer\">sequels better than the originals</a> is usually very short, but <a target=\"_blank\" href=\"https://github.com/facebookresearch/segment-anything-2\" rel=\"noreferrer\"><strong>SAM 2</strong></a> delighted us by not only being a better image segmentation model than SAM 1, it also conclusively and inexpensively <strong>solved video segmentation</strong> in just an elegant a way as SAM 1 did for images, and <strong>releasing everything to the community</strong> as <a target=\"_blank\" href=\"https://github.com/facebookresearch/segment-anything-2\" rel=\"noreferrer\">Apache 2/CC by 4.0</a>.</p><p><em>“In video segmentation, we observe better accuracy, using </em><strong><em>3x fewer interactions than prior approaches</em></strong><em>. </em></p><p><em>In image segmentation, </em><strong><em>our model is more accurate and 6x faster than the Segment Anything Model (SAM)</em></strong><em>.”</em></p><p></p><p>Surprisingly Efficient</p><p>The <a target=\"_blank\" href=\"https://segment-anything.com/\" rel=\"noreferrer\">paper reports</a> that SAM 2 was trained on 256 A100 GPUs for 108 hours (59% more than SAM 1). Taking the upper end $2 A100 cost off <a target=\"_blank\" href=\"http://gpulist.ai\" rel=\"noreferrer\">gpulist.ai</a> means SAM2 cost ~$50k to train if it had an external market-rate cost - surprisingly cheap for adding video understanding!</p><p>The newly released <a target=\"_blank\" href=\"https://ai.meta.com/datasets/segment-anything-video\" rel=\"noreferrer\">SA-V dataset</a> is also the largest video segment dataset to date, with careful attention given to scene/object/geographical diversity, including that of annotators. In some ways, we are surprised that SOTA video segmentation can be done on <em>only </em>~50,000 videos (and 640k masklet annotations). </p><p></p><p>Model-in-the-loop Data Engine for Annotations and Demo-first Development</p><p>Similar to SAM 1, a 3 Phase Data Engine helped greatly in bootstrapping this dataset. As Nikhila says in the episode, the demo you see wasn’t just for show, they <strong>actually used this same tool to do annotations</strong> for the model that is now demoed in the tool:</p><p><em>“With the original SAM, we put a lot of effort in building a high-quality demo. And the other piece here is that the demo is actually the annotation tool. </em><strong><em>So we actually use the demo as a way to improve our annotation tool. And so then it becomes very natural to invest in building a good demo because it speeds up your annotation. and improve the data quality, and that will improve the model quality.</em></strong><em> With this approach, we found it to be really successful.”</em></p><p>An incredible 90% speedup in annotation happened due to this virtuous cycle which helped SA-V reach this incredible scale.</p><p>Building the demo also helped the team live the context that their own downstream users, like Roboflow, would experience, and forced them to make choices accordingly.</p><p>As Nikhila says:</p><p><em>“It's a really encouraging trend for not thinking about only the new model capability, but what sort of applications folks want to build with models as a result of that downstream.</em></p><p><strong><em>I think it also really forces you to think about many things that you might postpone.</em></strong><em> For example, efficiency. For a good demo experience, </em><strong><em>making it real time is super important</em></strong><em>. No one wants to wait. And so it really forces you to think about these things much sooner and actually makes us think about </em><strong><em>what kind of image encoder</em></strong><em> we want to use or other things. hardware efficiency improvements. So those kind of …</em></p>","transcript":"","deepgram":null,"categories":"Technology,Science","duration":3810,"episode_number":null,"season":null,"episode_type":null,"release_date":"2024-08-07T21:18:17.000Z","audio_url":"https://api.substack.com/feed/podcast/147418165/89acd1fe0db26f14578c27572bfb68f6.mp3","image_url":null,"player_url":"/ep/Latent-Space-The-AI-Engineer-Podcast-Segment-Anything-2-Demo-first-Model-Development","valid":true,"accessTier":null,"created":"2026-10-12T06:04:09.239Z","updated":"2026-10-12T06:04:09.239Z","podcastId":1790,"podcast":{"id":1790,"slug":"Latent-Space-The-AI-Engineer-Podcast","name":"Latent Space: The AI Engineer Podcast","alias":null,"network":"","author":"Latent.Space","rss_url":"https://rss.flightcast.com/vgnxzgiwwzwke85ym53fjnzu.xml","description":"The podcast by and for AI Engineers! In 2025, over 10 million readers and listeners came to Latent Space to hear about news, papers and interviews in Software 3.0.\n\nWe cover Foundation Models changing every domain in Code Generation, Multimodality, AI Agents, GPU Infra and more, directly from the founders, builders, and thinkers involved in pushing the cutting edge. Striving to give you both the definitive take on the Current Thing down to the first introduction to the tech you'll be using in the next 3 months! We break news and exclusive interviews from OpenAI, Anthropic, Gemini, Meta (Soumith Chintala), Sierra (Bret Taylor), tiny (George Hotz), Databricks/MosaicML (Jon Frankle), Modular (Chris Lattner), Answer.ai (Jeremy Howard), et al. \n\nFull show notes always on https://latent.space\n\nSponsorship and business inquiries: business@latent.space <br /><br /><a href=\"https://www.latent.space?utm_medium=podcast\" rel=\"noreferrer\" target=\"_blank\">www.latent.space</a>","categories":"Technology,Science","itunes_type":null,"itunesTypeSource":null,"image_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","thumbnail_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","error":false,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2025-05-05T18:03:19.009Z","updated":"2026-10-12T06:04:09.239Z","tags":[]},"captions":[]},"podcast_data":{"id":1790,"slug":"Latent-Space-The-AI-Engineer-Podcast","name":"Latent Space: The AI Engineer Podcast","alias":null,"network":"","author":"Latent.Space","rss_url":"https://rss.flightcast.com/vgnxzgiwwzwke85ym53fjnzu.xml","description":"The podcast by and for AI Engineers! In 2025, over 10 million readers and listeners came to Latent Space to hear about news, papers and interviews in Software 3.0.\n\nWe cover Foundation Models changing every domain in Code Generation, Multimodality, AI Agents, GPU Infra and more, directly from the founders, builders, and thinkers involved in pushing the cutting edge. Striving to give you both the definitive take on the Current Thing down to the first introduction to the tech you'll be using in the next 3 months! We break news and exclusive interviews from OpenAI, Anthropic, Gemini, Meta (Soumith Chintala), Sierra (Bret Taylor), tiny (George Hotz), Databricks/MosaicML (Jon Frankle), Modular (Chris Lattner), Answer.ai (Jeremy Howard), et al. \n\nFull show notes always on https://latent.space\n\nSponsorship and business inquiries: business@latent.space <br /><br /><a href=\"https://www.latent.space?utm_medium=podcast\" rel=\"noreferrer\" target=\"_blank\">www.latent.space</a>","categories":"Technology,Science","itunes_type":null,"itunesTypeSource":null,"image_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","thumbnail_url":"https://substackcdn.com/feed/podcast/1084089/ca7468da5614a246d2906ee8926f6de7.jpg","error":false,"errorSince":null,"errorReason":null,"feedChangedAt":null,"tagsEditedAt":null,"hiddenAt":null,"hiddenReason":null,"endedAt":null,"popularity":0,"language":null,"country":null,"countrySource":null,"created":"2025-05-05T18:03:19.009Z","updated":"2026-10-12T06:04:09.239Z","tags":[]}}