All models

DFANet

Three stacked Xception backbones with cross-network and cross-stage feature aggregation for real-time segmentation.

Segmentation · 839 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 (17 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
3M
Operations
839
Framework
PyTorch
Recurrent
No
Published
CVPR 2019
Cited by
769 (as of 17 October 2026)
Authors
Hanchao Li, Pengfei Xiong, Haoqiang Fan, Jian Sun
License
Apache-2.0
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
m497
Graph hash
ed1cafa51ab8565be0c138e0dda8063e4bd4d33459bf38ea8ecdaea0b7d2b19f
Skeleton hash
f8ae667d7a7981eabcac29c802580c02d7b7f50466e44b348c82325a7da3d7b7
Architecture hash
aa9d6c66b89875040f1820fad5496df314374a9826eed62e32871124dae02fba
Diagram SHA-256
a7edd07984c3c487f9ac3fa194af237adfa8aeff8e75574d5f7a6bad798e3ee9
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

DFANet is an extremely efficient CNN for semantic segmentation under resource constraints. It starts from a single lightweight backbone and aggregates discriminative features through a sub-network cascade and a sub-stage cascade. The multi-scale feature propagation lets it cut parameters substantially while still keeping a sufficient receptive field.

The encoder is literally three copies of a modified Xception backbone, combined through sub-network aggregation and sub-stage aggregation. Sub-network aggregation feeds the output of each backbone into the next as a refinement process. Sub-stage aggregation feeds each stage's output in one backbone into the corresponding stage of the next, fusing semantic and spatial information at stage level. The backbone is a lightweight Xception with a fully-connected attention module at its tail, which the ablation credits with a 4-6% accuracy gain for almost no extra computation. A slight decoder of convolutions and bilinear upsampling then combines the stage outputs into the final prediction.

On the Cityscapes test set, DFANet reaches 70.3% mean IOU at 1.7 GFLOPs and 160 FPS on a Titan X, or 71.3% at 3.4 GFLOPs on a higher resolution input. The paper extends the base model along two axes, input size and channel dimension, which gives the DFANet A, B and A' configurations. The member traced here is the DFANet port in the zh320 collection, which lists an XceptionA encoder, 3.05 million parameters against the paper's 7.8 million, and 65.28 mIoU on Cityscapes validation against the paper's 71.9. A second third-party port by huaifeng1993 records the same difficulty, noting it is hard to improve the model's performance and that details may differ from the original paper.

Key idea. DFANet stacks three lightweight Xception backbones and aggregates features across both networks and stages, cutting FLOPs 8x against prior real-time segmenters at comparable accuracy.

  • dfanet
  • deep feature aggregation
  • deep feature aggregation network
  • real-time semantic segmentation
  • sub-network aggregation
  • sub-stage aggregation
  • xception a
  • xception b
  • dfanet a
  • dfanet b
  • cityscapes
  • camvid

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

Cite the paper

@misc{li2019dfanetdeepfeatureaggregation,
      title={DFANet: Deep Feature Aggregation for Real-Time Semantic Segmentation}, 
      author={Hanchao Li and Pengfei Xiong and Haoqiang Fan and Jian Sun},
      year={2019},
      eprint={1904.02216},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1904.02216}, 
}