HyperSeg
A real-time semantic segmentation network whose encoder generates spatially varying weights for its decoder.
Segmentation · 696 operations Checked
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
- Task
- Segmentation
- Parameters
- 10.3M
- Operations
- 696
- Framework
- PyTorch
- Recurrent
- No
- Published
- CVPR 2021
- Cited by
- 273 (as of 27 October 2026)
- Authors
- Yuval Nirkin, Lior Wolf, Tal Hassner
- Source
- GitHub: YuvalNirkin/hyperseg
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m17434
- Graph hash
- 1b983c5a989531c0ae59f1a461a57e1534e2ae7e6f937476f4aef6fa4fd1b32b
- Skeleton hash
- e38c27db127cff57de1015f889ccd6d461b19464b7e48add35565ad1dc16963d
- Architecture hash
- 7055102a4e109546f93df362b7ba6561f8dcae49ccd0fbde703e209995f7ede7
- Diagram SHA-256
- 8abec8ded4ab08da56704f9dfe11ce295a54e3b823544325fb0adfc7c050515a
- 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
HyperSeg is a real-time semantic segmentation network in which the encoder both encodes the image and generates the parameters (weights) of the decoder. The decoder weights are not fixed across the image either: they vary between patches at each stride level.
The model involves three sub-networks: a backbone, a context head and a primary network that acts as the decoder. The backbone is based on the EfficientNet family of models, with its head replaced by the context head. The context head is designed as a nested U-Net. The decoder consists of meta blocks whose design is based on the inverted residual block of MobileNetV2. Instead of regular convolutions, these blocks use dynamic patch-wise convolutions. A multi-headed weight generating module produces the weights of each decoder block immediately before they are consumed, for efficient memory utilization. The input image and the encoder's feature maps are augmented with a positional encoding.
The paper experiments with large, medium and small variants, HyperSeg-L, HyperSeg-M and HyperSeg-S, which share the same template. HyperSeg-M and HyperSeg-S omit the finest resolution level of the decoder and bilinearly upsample predictions from the previous level to the input resolution. The repository lists HyperSeg-M on Cityscapes at 1024x512 with 76.2% mIoU on the validation set and 36.9 FPS. It states that FPS was measured on an NVIDIA GeForce GTX 1080TI GPU.
Key idea. HyperSeg turns the segmentation encoder into a hypernetwork that generates decoder weights for dynamic patch-wise convolutions, so the weights vary both per input and per spatial location.
- hyperseg
- hyperseg-m
- hyperseg-s
- hyperseg-l
- real-time semantic segmentation
- semantic segmentation
- patch-wise hypernetwork
- hypernetwork
- dynamic patch-wise convolution
- cityscapes
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{nirkin2021hypersegpatchwisehypernetworkrealtime,
title={HyperSeg: Patch-wise Hypernetwork for Real-time Semantic Segmentation},
author={Yuval Nirkin and Lior Wolf and Tal Hassner},
year={2021},
eprint={2012.11582},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2012.11582},
}