Gwara reVisual AI

Chikamu Chero Chero Chimiro (SAM)

The Segment Anything Model (SAM) ndeye Meta AI's inokurumidza yemufananidzo segmentation modhi: yakapihwa mufananidzo nekudzvanya, bhokisi kana rough mask, inoburitsa pixel-chaiyo ratidziro yechinhu.

Teerera kugwaro iriAI-yakarondedzerwa · ~8 min

Pa peji ino9 min verenga
  1. Pfupiso
  2. Zvakakosha zvinobuda
  3. Kudzika Kwakadzika
  4. Kugovanisa chinhu chimwe nezvibodzwa
  5. Kuitwa muNyika yeChokwadi
  6. Ramangwana reSegment Chero Chinhu Model (SAM)
  7. Kuzvishandisa
  8. Sources uye kuwedzera kuverenga
  9. Ramba Uchiongorora
  10. Mibvunzo inowanzo bvunzwa

Pfupiso

Yakaburitswa muna Kubvumbi 2023 iine SA-1B, dhatabheti yemasiki bhiriyoni 1.1 pamifananidzo inosvika miriyoni gumi neimwe, yakashandura chikamu kuita chishandiso chechinangwa, uye vatevedzeri vayo SAM 2 uye SAM 3 vanoiwedzera kuvhidhiyo uye kune mameseji-akanyorwa pfungwa.

Zvakakosha zvinobuda

  1. SAM, yakaburitswa neMeta AI muna Kubvumbi 2023, inodonongodza zvinhu kubva papoindi, bhokisi kana mask inosimudzira pasina kudzidzirazve mapoka matsva.
  2. SAM's SA-1B dataset ine masiki bhiriyoni 1.1 pamifananidzo mamirioni gumi nerimwe, uye 99.1% yemasks iwayo akagadzirwa otomatiki.
  3. SAM inomhanyisa ingangoita 636 miriyoni parameter ViT-H encoder kamwe pamufananidzo, ipapo diki decoder inofanotaura mask yega yega mune angangoita makumi mashanu milliseconds.
  4. Nekukurudzira kusinganzwisisike SAM inodzosa masiki matatu, angangoita akazara, chikamu uye chidimbu, imwe neimwe ine yakafanotaurwa IoU mamakisi.
  5. SAM 2 (2024) inowedzera kukurumidza chikamu kune vhidhiyo ine yekutenderera ndangariro, uye SAM 3 (2025) zvikamu zvese zviitiko zvechinyorwa-chakatumidzwa pfungwa.

Kudzika Kwakadzika

Image segmentation means labeling exactly which pixels belong to an object, producing an outline, called a mask, rather than just a bounding box. Before 2023, segmentation models were usually trained for a fixed list of categories, such as people, cars and dogs, and needed new labeled data for each new domain. The Segment Anything project, described by Alexander Kirillov, Eric Mintun, Nikhila Ravi, Ross Girshick and colleagues at Meta AI in a paper posted April 5, 2023, set out to build a foundation model for segmentation: one model that can outline almost any object in almost any image, with no retraining.

The key design choice is the task. SAM performs promptable segmentation: it takes an image and a prompt and returns a valid mask. A prompt can be one or more foreground or background points, a box, a rough mask, or, experimentally, text. Prompts are often ambiguous. A click on a shirt could mean the shirt or the whole person. SAM handles this by returning three candidate masks, roughly the whole object, a part and a subpart, each with a predicted quality score, its estimate of intersection over union (IoU), the overlap between a predicted and true mask. The paper notes that nested masks are usually at most three levels deep.

SAM has three parts. The image encoder is a Vision Transformer (ViT), a network that processes images as a grid of patches, pretrained with the masked autoencoder (MAE) method. The largest version, ViT-H, has about 636 million parameters. It reads a 1024 by 1024 image and outputs a 64 by 64 grid of 256-dimensional features, called the image embedding. It runs once per image. The prompt encoder turns points and boxes into vectors using positional encodings plus learned type embeddings, and turns masks into features with small convolutions. The mask decoder is a lightweight two-layer Transformer that lets prompt tokens and image features attend to each other, then upsamples and predicts a mask. Because only the decoder runs per prompt, a user can click repeatedly and see new masks in about 50 milliseconds.

The data came from a 'data engine' in which model and annotators improved each other in three stages. In the assisted-manual stage, professional annotators clicked points with a SAM-powered browser tool and corrected masks with brush and eraser tools; the model was retrained six times, and 4.3 million masks were collected from 120,000 images. In the semi-automatic stage, SAM pre-filled confident masks and annotators labeled what was missing, adding 5.9 million masks from 180,000 images. In the fully automatic stage, SAM was prompted with a 32 by 32 grid of points on each of 11 million images and only confident, stable masks were kept. The result, SA-1B, holds 1.1 billion masks, 99.1% generated automatically. Released images were downsampled to 1,500 pixels on the short side, with faces and license plates blurred.

On 23 diverse segmentation datasets, the authors found SAM's zero-shot results from a single point often competitive with or better than prior fully supervised methods. Training used 256 A100 GPUs for 68 hours. The code and three checkpoints, ViT-B, ViT-L and ViT-H, are released under Apache 2.0, while SA-1B requires agreeing to a research license.

SAM 2, posted August 1, 2024 by Nikhila Ravi, Christoph Feichtenhofer and colleagues, extends promptable segmentation to video. It treats an image as a one-frame video and adds a streaming memory, so a mask drawn on one frame can be propagated and corrected through the rest. The authors reported better video accuracy with three times fewer interactions than prior approaches, and, on images, more accuracy than SAM at six times the speed. SAM 3, posted November 20, 2025 by Nicolas Carion and colleagues, adds promptable concept segmentation: given a short noun phrase such as 'yellow school bus', image examples, or both, it finds and masks every matching instance in an image or video. Its data engine produced 4 million unique concept labels, and the authors report roughly double the accuracy of existing systems on this task. Meta says SAM 3 runs at about 30 milliseconds per image with more than 100 detected objects on an H200 GPU.

Compared with classic models such as Mask R-CNN, trained on fixed label sets, SAM does not name what it segments; it only outlines. That makes it a component rather than a complete system: practitioners often pair it with a detector or language model that supplies boxes or names. Compared with dedicated interactive tools, the SAM paper itself says those methods can outperform SAM when many points are provided, since SAM aims for breadth over maximum precision.

The paper lists other limitations: SAM can miss fine structures, sometimes produces small disconnected fragments, and gives less crisp boundaries than slower methods that zoom in. Its text prompting was exploratory and not fully robust, and domain-specific tools may do better in specialized fields such as medical imaging. The heavy image encoder means the full pipeline is not real time even though prompting is. The authors also examined fairness and reported results across perceived gender presentation, age and skin tone groups. In practice, running ViT-H requires a GPU for reasonable speed, while smaller checkpoints trade accuracy for speed.

04Muenzaniso wakashanda

Kugovanisa chinhu chimwe nezvibodzwa

  1. Isa chikamu-chero pasuru, dhawunirodha iyo ViT-B yekutarisa, uye takura mufananidzo une munhu akapfeka hembe.

  2. Kokorodza iyo yekumisikidza mufananidzo kamwe chete neinofanotaura set_image call; iri ndiro danho rinononoka.

  3. Pfuura imwe yekumberi poindi pahembe ine multimask kubuda inogoneswa, uye gamuchira masiki matatu ane matatu akafanotaurwa IoU zvibodzwa.

  4. Ratidza masiki: kazhinji imwe inovhara nzvimbo diki yehembe, imwe hembe yese, uye mumwe munhu wese.

  5. Wedzera nzvimbo yekumashure pachiso chemunhu uye womhanyisa dhikodha zvakare, uchishandisa zvakare cached yekumisikidza, kubvisa dudziro yedanho remunhu.

  6. Sevha iyo maski yakasarudzwa uye uienzanise neyakadhirowewa neruoko nekombuta mharadzano pamusoro pemubatanidzwa.

Zvazvinoratidza

Bhanari mask yehembe, pamwe nerekodhi yekuti akawedzera sei kukurudzira kwakagadzirisa kusanzwisisika. Tarisa mhando nekombuta IoU inopesana nebhuku rako rekunyora; ma values ​​ari padyo ne1 anoratidza kuwirirana kwakasimba, uye yechipiri decoder call inofanira kudzoka nekukurumidza kupfuura yekutanga nhanho yekuisa.

Kuitwa muNyika yeChokwadi

Interactive labeling: Meta's vanyanyisi vega vakashandisa SAM mubrowser chishandiso, uye avhareji yenguva pamaski yakadonha kubva pamasekonzi makumi matatu nemana kusvika gumi nemana apo modhi yakavandudzwa, pabepa ra2023.

Kugadzira data rekudzidziswa otomatiki: SAM yakakurudzirwa ne32 ne32 grid yemapoinzi yakagadzira 99.1% ye1.1 bhiriyoni masks akaburitswa muSA-1B.

Kumhanya mune peji rewebhu: iyo SAM repository inoendesa kunze iyo yakareruka mask decoder kuONNX, uye bepa rinoshuma kuti rinofanotaura mask mune angangoita makumi mashanu milliseconds paCPU mubrowser.

Kutsvaga zvinhu kuburikidza nevhidhiyo neSAM 2, iyo iyo 2024 bepa mishumo inosvika pakurongeka kuri nani pane nzira dzekare uchishandisa katatu kushomeka kwevashandisi.

Facebook Musika weMaonero muKamuri ficha inoshandisa SAM 3 uye SAM 3D kuratidza kuti zvinhu zvekushongedza pamba zvakaita semarambi zvaizotaridzika sei munzvimbo yechitoro, maererano neMeta.

Tsvagiridzo yemhuka dzemusango: Meta's SA-FARI dataset, yakavakwa neConservation X Labs uye Osa Conservation, inopa masiki kumhuka yega yega mumavhidhiyo anopfuura zviuru gumi kamera-muteyo.

Ramangwana reSegment Chero Chinhu Model (SAM)

The Segment Anything line shows a clear direction: from points on single images (SAM, April 2023), to tracked objects in video (SAM 2, August 2024), to finding every instance of a named concept (SAM 3, November 2025). Meta's March 2026 SAM 3.1 update reports tracking up to 16 objects per forward pass and raising speed from 16 to 32 frames per second on one H100 GPU for videos with a medium number of objects, which points toward real-time multi-object use. Open problems remain. The original paper said it was unclear how to design simple prompts for semantic and panoptic segmentation, and SAM 3's concept prompts are one answer whose robustness across languages, rare concepts and specialized domains is still being measured, for example through the SA-Co benchmark and partner datasets such as SA-FARI for wildlife and FathomNet for ocean imagery. Fine boundaries, thin structures and medical or scientific images where domain tools still compete are active areas. As segmentation becomes cheap enough to run on every frame, questions about privacy, such as segmenting people in public video, and about dataset licensing are likely to get more attention.

Kuzvishandisa

Nei zvichikosha

  • Kumhanya uye chiyero. Visual AI inogona kuita otomatiki yekuongorora, yekuona, uye yekumaka mabasa pachiyero.
  • Vaka sarudzo. Zvikwata zvekugadzira zvinogona prototype pfungwa nekukurumidza nekudzokororwa kwemaoko mashoma.
  • Team uye workflow. Mashandisirwo anogona kushandisa masaini emifananidzo nemavhidhiyo ayo aimbove akaoma kugadzirisa.

Chenjera

  • Kodzero dzemifananidzo uye kubvumirwa kunogona kuve njodzi dzepamutemo kana provenance isina kujeka.
  • Kuita kwemuenzaniso kunogona kusiyanisa kupenya, huwandu hwevanhu, uye nharaunda.
  • Manyepo enhema anogona kusacherechedzwa kunze kwekunge zvikumbaridzo zvekuvimba zvikatariswa.

Matanho anotevera

  1. Tsanangura maitiro ekugamuchirwa echokwadi, kurangarira, uye mutengo wekukanganisa.
  2. Edzai nedata rinoenderana nemamiriro chaiwo ekugadzira.
  3. Wedzera ongororo yemunhu kune yakaderera-kusavimbika kana yakakwirira-inokanganisa kufanotaura.
  4. Tevera modhi kudonha uye simbisa mushure mekuchinja kwekamera kana dataset.

Sources uye kuwedzera kuverenga

  1. arXiv (Meta AI)Cheka Chero Chii
  2. Meta AI (GitHub)facebookresearch/segment-anything
  3. arXivSAM 2: Segment Chero chinhu mumifananidzo nemavhidhiyo
  4. arXivSAM 3: Chikamu Chese chine Mafungiro
  5. Meta AIKuunza Meta Chikamu Chero Chero Model 3 uye Chikamu Chero Chero Nzvimbo Yekutamba

Ramba Uchiongorora

Tsamba yemahara

Tora iyo yemazuva ese AI pfupiso

Nhatu dzakasimbiswa dzeAI nyaya mangwanani ega ega pakati pevhiki, dzakanyorwa neChirungu chakajeka. Yemahara zvachose, hapana ads.

Imwe email zuva rega rega revhiki. Bvisa kunyoresa kamwe chete. Hatimbotengese kana kugovera kero yako.

Zviedze iwe pachako

Tora iyo Segment Chero Chii Model (SAM) quiz

Mhinduro yepakarepo pamhinduro yega yega, uye chitupa chinogovaniswa chine ID inobatika kana wapedza kosi.

Tanga mibvunzo

Tsigira dzidzo yemahara yeAI. AI Understanding ndeye 501(c)(3) isingabatsiri - hapana ads, hapana paywall, zvachose. Ita chipo

Mibvunzo inowanzo bvunzwa

Chii chinonzi Segment Anything Model (SAM)?

The Segment Anything Model (SAM) ndeye Meta AI's inokurumidza yemufananidzo segmentation modhi: yakapihwa mufananidzo nekudzvanya, bhokisi kana rough mask, inoburitsa pixel-chaiyo ratidziro yechinhu. Yakaburitswa muna Kubvumbi 2023 iine SA-1B, dhatabheti yemasiki bhiriyoni 1.1 pamifananidzo inosvika miriyoni gumi neimwe, yakashandura chikamu kuita chishandiso chechinangwa, uye vatevedzeri vayo SAM 2 uye SAM 3 vanoiwedzera kuvhidhiyo uye kune mameseji-akanyorwa pfungwa.

Ndeipi pfungwa huru inoita kuti SAM ive 'nheyo modhi' yezvikamu?

SAM inogadziridza segmentation sezvichimbidzika uye yakagadzirirwa zero-pfuti kuendesa kune zvinhu nemifananidzo kunze kwayo seti yekudzidziswa.

Yakakura sei iyo dataset yeSA-1B inoshandiswa kudzidzisa SAM?

SA-1B ine masiki anodarika bhiriyoni pamifananidzo inosvika miriyoni gumi neimwe, yakavakwa nemodhi-in-the-loop annotation engine.

Nei SAM ichitsemura dhizaini yayo kuita inorema mufananidzo encoder uye yakareruka yekukurumidza encoder/decoder?

Iyo inodhura mufananidzo encoding inomhanya kamwe chete; ipapo yakachipa yekukurumidza encoding uye mask decoding inobvumira kukurumidza, kupindirana kudzokorodza kwemufananidzo mumwe chete.

SAM inobata sei kukurumidza kusinganzwisisike, sekudzvanya kumwe chete kunogona kureva zvinhu zvakati wandei?

SAM inoburitsa masiki akati wandei ane zvibodzwa kuitira kuti kusanzwisisana kugadziriswe nekuisa kana kumwe kurudziro.

Ndeupi rudzi rwemusana unoshandiswa neSAM kuvhara mufananidzo wekuisa?

SAM's image encoder is Vision Transformer, inowanzofanodzidziswa ine masked autoencoding, ichigadzira dense image embedding.