BiSeNetV1_ResNet18
A two-path network for real-time semantic segmentation, here with a ResNet18 context path.
Segmentation · 62 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
- 2.4M
- Operations
- 62
- Framework
- PyTorch
- Recurrent
- No
- Published
- 2018
- Paper
- Read the paper
- 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
- m11595
- Graph hash
- 1bcbc042fb37ac4d8fccad31ada5a4ead4207f4d6b884d77bf395359f75d020f
- Skeleton hash
- e36171c459175107145259b52385099fb16a456fe9dd1da6cd3f5005e1d07fd4
- Architecture hash
- 7498e230c18e7468894abc7245c316bad38a2e4994b8cf388bf7cf2727233463
- Diagram SHA-256
- e2405f9900dfa2306c6bd86087916976c1f0d3bbf74ea9657ad25a47c889f143
- 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.bisenet_segmentation:build_bisenet_v1: build({}) What it is
BiSeNet, the Bilateral Segmentation Network, labels every pixel of an image with a class (semantic segmentation) and is designed to do so in real time. Its paper argues that earlier fast methods gave up spatial resolution to gain speed, and that accuracy suffered for it. BiSeNet instead assigns the two jobs, keeping spatial detail and providing a large receptive field, to two separate paths.
The Spatial Path has three layers, each a stride-2 convolution followed by batch normalization and ReLU, so its output feature map is 1/8 the size of the original image. The Context Path uses a lightweight backbone and global average pooling to provide a large receptive field. Inside it, an Attention Refinement Module (ARM) pools features globally and computes an attention vector that guides feature learning. A Feature Fusion Module concatenates the outputs of the two paths, balances their scales with batch normalization, and reweights the result with a pooled weight vector, as SENet does.
The paper builds its fastest version on a modified Xception model, Xception39, and also applies the design to standard ResNet18 and ResNet101 base models; this model is the ResNet18 version. For a 2048x1024 input, the paper reports 68.4% Mean IOU on the Cityscapes test set at 105 FPS on one NVIDIA Titan XP card. That figure belongs to the Xception39 version; the paper's results table lists the Res18 version at 74.7% on the Cityscapes test set and 65.5 FPS.
Key idea. BiSeNet splits real-time segmentation into a small-stride Spatial Path that preserves detail and a fast-downsampling Context Path that supplies receptive field, then fuses them with a Feature Fusion Module.
- bisenet
- bisenetv1
- bisenet v1
- bilateral segmentation network
- real-time semantic segmentation
- spatial path
- context path
- cityscapes segmentation
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.