All models

FuxiCTR-SAM

Promptable segmentation model that returns a mask for any object given points or boxes.

Segmentation · 41 operations Checked

100%

Showing the top corner; full diagram not loaded yetShowing a small copy; full diagram not loaded yetLarge diagram, not loaded yet

Open SVG

Loading diagram (17 KB)

Open in a new tab

Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.

At a glance

Family
sam
Parameters
1.1K
Operations
41
Framework
PyTorch
Recurrent
No
Published
2023
Source
transformers 5.18.0
License
Apache-2.0
Checked
Passed: the trace was replayed operation by operation and matched the model's own output for this input.

Files

The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.

Details
Stable ID
m11645
Graph hash
e1716177fb12631b7814ff964dbc7bd01ae43fc2e0bd8ad0716320ea679b3571
Skeleton hash
251e90beebd579186c02e2292f0f0b8e71355dbcc2527b8ee337ac10933456ae
Architecture hash
188bc1e2830775d5579edab60b0cccbcfc01b6d3350cc6a6d8a29a8421a49d96
Diagram SHA-256
72543cf3cdda40b5a638bbc7cac08e56da04b67676a5b7fd8f2600c8568eb442
TorchLens version
2.35.3
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

How this diagram was made

menagerie.classics.fuxictr_ctr:build_sam: build({})

What it is

About this model's family

SAM, the Segment Anything Model, predicts a segmentation mask for any object of interest in an image once you point at it. It was built to be promptable: the prompts are 2D points, bounding boxes or a prior mask, and that design is what lets it transfer zero-shot to new image distributions and tasks. Behind it sits SA-1B, a dataset of over 1 billion masks on 11M licensed images, collected in a loop with the model itself. Zero-shot, the authors found it often competitive with or better than prior fully supervised results.

In practice the output is a binary mask, results improve markedly with point or box prompts, and several points can be combined to predict one mask. The paper describes text prompts too, but the library notes these were not supported in the official repository at the time of writing. The traced member here is the image encoder on its own, the SAM vision model, rather than the full prompt-encoder and mask-decoder pipeline.

Key idea. A promptable segmentation model that takes points, boxes or masks as prompts and transfers zero-shot, trained on SA-1B with over 1 billion masks on 11M images.

  • SAM
  • Segment Anything
  • Segment Anything Model
  • SA-1B
  • promptable segmentation
  • mask generation
  • zero-shot segmentation
  • SlimSAM
  • Grounded SAM

AI-written summary, based on the model's documentation and checked automatically against it; not reviewed by a person. Corrections welcome.