All models

mmdet_boxinst

BoxInst trains CondInst's instance masks from box annotations alone by changing only the mask loss.

Segmentation · 127 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 (150 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
BoxInst
Parameters
1.2M
Operations
127
Framework
PyTorch
Recurrent
Yes
Published
CVPR 2021
Cited by
362 (as of 29 October 2026)
Authors
Zhi Tian, Chunhua Shen, Xinlong Wang, Hao Chen
License
BSD-2-Clause
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
m6478
Graph hash
7038926562b40040b3915c46cc140f983a10ce99c3fbabd5e1635f4f486a0478
Skeleton hash
74c4a0599beec546e0f2a44dc0fba61655d1136205e7fe4b358854b924cf1131
Architecture hash
3c939597b22cc9b6e0ab22753442293dc41cdf9beb48447ab7c0626cf2ab77da
Diagram SHA-256
05dc837483044911c1e6524ea783f82e62c756af121785659de07b58d92ab01c
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.mmdet_wave_a:build_mmdet_wave_a: build({})

What it is

About this model's family

BoxInst is an instance segmentation method that learns to predict per-object masks from bounding-box annotations alone. The network is not new: BoxInst keeps the CondInst model unchanged and only swaps the loss used to train its masks, so inference is exactly the same as in CondInst.

CondInst builds on the FCOS detector and adds compact dynamic mask heads, whose weights are adapted to each instance being predicted. In place of CondInst's pixel-wise mask losses, BoxInst trains with a mask loss made of two terms. The projection term asks that the horizontal and vertical projections of the predicted mask match those of the ground-truth box. The pairwise term relies on the observation that nearby pixels with similar colors are very likely to share a label, and only pixel pairs passing a color similarity threshold enter the loss.

With a ResNet-101 backbone and a 3× training schedule, the paper reports 33.2% mask AP on COCO test-dev without any mask annotations, against 39.1% for the fully supervised counterpart. The mask head predicts class-agnostic masks, and each instance's category comes from the detector's classification branch.

Key idea. The paper shows that replacing CondInst's pixel-wise mask loss with a box-projection term and a color-based pairwise term trains instance masks from box annotations alone.

  • BoxInst
  • box-supervised instance segmentation
  • instance segmentation
  • weakly supervised segmentation
  • box annotations
  • projection loss
  • pairwise affinity loss
  • AdelaiDet

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

Cite the paper

@misc{tian2020boxinsthighperformanceinstancesegmentation,
      title={BoxInst: High-Performance Instance Segmentation with Box Annotations}, 
      author={Zhi Tian and Chunhua Shen and Xinlong Wang and Hao Chen},
      year={2020},
      eprint={2012.02310},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/2012.02310}, 
}