World Model · podcast knowledge graph

Segment Anything 2: Demo-first Model Development

2024-08-07 · 64 min · 18 entities

Asserted relationships

  • → references Autodistill product
    0.77
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://github.com/autodistill/autodistill
  • → references Segment Anything 2 book
    0.77
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://github.com/facebookresearch/segment-anything-2
  • → references Notebooks product
    0.77
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://github.com/roboflow/notebooks
  • → discusses Science concept
    0.40
    evidence rules-v4
    Feed category: Science
  • → discusses Technology concept
    0.40
    evidence rules-v4
    Feed category: Technology
  • → references Demo website
    0.38
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://sam2.metademolab.com/demo
  • → references Label Data With Grounded Sam 2 website
    0.38
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://blog.roboflow.com/label-data-with-grounded-sam-2
  • → references Sam 2 Video Segmentation website
    0.38
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://blog.roboflow.com/sam-2-video-segmentation

Entities found in this episode

websites 6

  • mentioned Demo website
    0.45
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://sam2.metademolab.com/demo
  • mentioned Label Data With Grounded Sam 2 website
    0.45
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://blog.roboflow.com/label-data-with-grounded-sam-2
  • mentioned Sam 2 Video Segmentation website
    0.45
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://blog.roboflow.com/sam-2-video-segmentation
  • references Demo website
    0.38
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://sam2.metademolab.com/demo
  • references Label Data With Grounded Sam 2 website
    0.38
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://blog.roboflow.com/label-data-with-grounded-sam-2
  • references Sam 2 Video Segmentation website
    0.38
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://blog.roboflow.com/sam-2-video-segmentation

concepts 5

  • mentioned Science concept
    0.50
    evidence rules-v4
    Feed category: Science
  • mentioned Technology concept
    0.50
    evidence rules-v4
    Feed category: Technology
  • mentioned Demo-first Model Development concept
    0.42
    evidence rules-v4
    Segment Anything 2: Demo-first Model Development
  • discusses Science concept
    0.40
    evidence rules-v4
    Feed category: Science
  • discusses Technology concept
    0.40
    evidence rules-v4
    Feed category: Technology

products 4

  • mentioned Autodistill product
    0.90
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://github.com/autodistill/autodistill
  • mentioned Notebooks product
    0.90
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://github.com/roboflow/notebooks
  • references Autodistill product
    0.77
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://github.com/autodistill/autodistill
  • references Notebooks product
    0.77
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://github.com/roboflow/notebooks

books 3

  • references Segment Anything 2 book
    0.77
    evidence rules-v4
    Link in episode "Segment Anything 2: Demo-first Model Development": https://github.com/facebookresearch/segment-anything-2
  • mentioned SAM 2 book
    0.72
    evidence rules-v4
    author of SAM 2
  • mentioned Segment Anything 2 book
    0.72
    evidence rules-v4
    author of Segment Anything 2
Episode description as stored
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 Efficient The 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 Development 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 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 things, I think, become a first-class citizen when you put the demo first.” Indeed, the team swapped out standard ViT-H Vision Transformers for Hiera (Hierarchical) Vision Transformers as a result of efficiency considerations. Memory Attention Speaking of architecture, the model design is probably the sleeper hit of a project filled with hits. The team adapted SAM 1 to video by adding streaming memory for real-time video processing: Specifically adding memory attention, memory encoder, and memory bank, which surprisingly ablated better than more intuitive but complex architectures like Gated Recurrent Units . One has to wonder if streaming memory can be added to pure language models