All models

smp_FPN_resnext50_32x4d

A feature pyramid with lateral connections, here decoding 72 different encoders into 21-class segmentation masks.

Segmentation · 216 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 (28 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

Parameters
25.6M
Operations
216
Framework
PyTorch
Recurrent
No
Published
CVPR (arXiv 2016)
Cited by
29,863 (as of 9 October 2026)
Authors
Tsung-Yi Lin, Piotr Dollár, Ross Girshick 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
m9435
Graph hash
0ed078ee4aac42512bcc55161015a4426b0a9dd94ef8bd6ad886c5732e33fe43
Skeleton hash
3a26d23b8e1210a1b974a18457e90dd409e5a0c066d15ab457094c5d55db8942
Architecture hash
6bcb1ae82410535b72c7b760faf06be9b25c1309e88969a239ff7bbee3c32a9d
Diagram SHA-256
74bf9b57e02b470e80dab079f8edefd9296af31046fd80b16604908495a4587a
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

How this diagram was made

segmentation_models_pytorch.FPN(encoder_name='resnext50_32x4d', encoder_weights=None, in_channels=3, classes=21)

What it is

About this model's family

The Feature Pyramid Network, FPN, is Tsung-Yi Lin, Piotr Dollár, Ross Girshick, Kaiming He, Bharath Hariharan and Serge Belongie's way of getting multi-scale features out of a backbone CNN for almost nothing. Feature pyramids are a basic component of recognition systems for detecting objects at different scales, but recent deep detectors had avoided them, in part because they are compute and memory intensive. The paper's observation is that a deep convolutional network already has an inherent multi-scale, pyramidal hierarchy, and FPN exploits it to construct feature pyramids with marginal extra cost.

The mechanism is a top-down architecture with lateral connections that builds high-level semantic feature maps at all scales. Dropped into a basic Faster R-CNN, it reached state-of-the-art single-model results on the COCO detection benchmark without bells and whistles, surpassing all existing single-model entries including those from the COCO 2016 challenge winners.

The authors pitched FPN as a generic feature extractor that improves several applications, and that is how it appears here: the pyramid sits under a segmentation head rather than a detector, producing a 21-class mask over every pixel. The 72 members of this family differ only in the encoder feeding the pyramid, from ResNet and ResNeXt through DenseNet, DPN, EfficientNet, Inception, MobileNet, MobileOne, SENet and the MiT transformers, all at random initialization. The paper closes by calling FPN a practical and accurate solution to multi-scale object detection, running at 5 FPS on a GPU.

Key idea. A top-down pathway with lateral connections that turns a backbone's inherent pyramidal hierarchy into high-level semantic feature maps at every scale, at marginal extra cost.

  • fpn
  • feature pyramid network
  • fpn segmentation
  • segmentation_models_pytorch
  • smp fpn
  • semantic segmentation
  • multi-scale features
  • lateral connections
  • lin dollar girshick he

AI-written summary, checked automatically against its sources; not reviewed by a person. Corrections welcome.

Cite the paper

@misc{lin2017featurepyramidnetworksobject,
      title={Feature Pyramid Networks for Object Detection}, 
      author={Tsung-Yi Lin and Piotr Dollár and Ross Girshick and Kaiming He and Bharath Hariharan and Serge Belongie},
      year={2017},
      eprint={1612.03144},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1612.03144}, 
}