All models

SiamTrackers-SiamMask

SiamMask adds a mask branch to Siamese trackers, giving masks and rotated boxes online at 55 frames per second.

Detection and tracking · 445 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 (501 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
SiamMask
Parameters
18.8M
Operations
445
Framework
PyTorch
Recurrent
Yes
Published
CVPR 2019
Cited by
1,553 (as of 18 October 2026)
Authors
Qiang Wang, Li Zhang, Luca Bertinetto and others
License
MIT
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
m2828
Graph hash
b9e9cb19afb5df44e7705d75938505ad655ccb56da3ec5c8f83fd89d6bb495bf
Skeleton hash
388f42fdf9f5e6d6b8a8b773dd83bbde62d3769864b63f85f966f0c5dd0bc7a1
Architecture hash
d31b24a13777deb764b2ddda6ea7aaa63a4331f4a7e3eb20a654112e1f9e2236
Diagram SHA-256
c1d90b4b72ae598e076378c4a7f1dfeac222308ebdc3458ea375f14873eee1df
TorchLens version
2.36.0
Renderer
graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
Check
Forward pass replayed in PyTorch

What it is

About this model's family

SiamMask is a tracker that does two jobs at once: visual object tracking and semi-supervised video object segmentation, in real time, with one simple approach. The trick is to take the fully-convolutional Siamese trackers that are trained offline on pairs of frames and augment their loss with a binary segmentation task. Once trained it relies only on a single bounding box to start, operates online, and produces class-agnostic segmentation masks and rotated bounding boxes at 55 frames per second. Binary labels are needed only during offline training to compute the segmentation loss, never online.

The backbone is a ResNet-50 used up to the final convolutional layer of the fourth stage. Its output stride is reduced to 8 by using convolutions with stride 1, and dilated convolutions widen the receptive field. As in SiamFC, the exemplar and search patches are 127 by 127 and 255 by 255 pixels. The simple cross-correlation of SiamFC is replaced by depth-wise cross-correlation, so each candidate window gets a multi-channel response rather than a single similarity score. The mask branch is just two 1 by 1 convolutional layers, one with 256 channels and one with 632, so every pixel classifier can use the whole candidate window. Multiple refinement modules made of upsampling layers and skip connections then merge low and high resolution features for a more accurate mask.

The paper builds two variants, a two-branch one on SiamFC and a three-branch one on SiamRPN that also regresses boxes. The first traced member comes from the official implementation, which ships training code for SiamMask. On VOT-2018 the three-branch variant reaches an EAO of 0.380 while running at 55 frames per second. The authors claim this establishes a new state of the art among real-time trackers on VOT-2018. All models are trained on COCO, ImageNet-VID and YouTube-VOS.

Key idea. SiamMask augments the loss of fully-convolutional Siamese trackers with a binary segmentation task, so one network initialised from a single bounding box produces segmentation masks and rotated boxes online at 55 frames per second.

  • SiamMask
  • siamese tracker
  • visual object tracking
  • video object segmentation
  • VOS
  • fast online object tracking and segmentation
  • SiamFC
  • SiamRPN
  • VOT-2018
  • DAVIS
  • SiamTrackers
  • real-time tracking

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

Cite the paper

@misc{wang2019fastonlineobjecttracking,
      title={Fast Online Object Tracking and Segmentation: A Unifying Approach}, 
      author={Qiang Wang and Li Zhang and Luca Bertinetto and Weiming Hu and Philip H. S. Torr},
      year={2019},
      eprint={1812.05050},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1812.05050}, 
}