All models

PANet-ResNet18

A fast scene text detector for arbitrary-shaped text, with a light segmentation head and pixel aggregation.

Documents and OCR · 52 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 (35 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
PAN
Parameters
191.5K
Operations
52
Framework
PyTorch
Recurrent
No
Published
ICCV 2019
Cited by
658 (as of 28 October 2026)
Authors
Wenhai Wang, Enze Xie, Xiaoge Song and others
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
m2082
Graph hash
0ac5c794cfdd242c8ba0ed7f4f540acf383b2c8fe51e9528733656bc8f5415e9
Skeleton hash
565e789b2e52c99ea15837f0fbc32fd0888d4ce30f7955a009b46255ac2e72ce
Architecture hash
83da61bcf3ead3d553976f1670b018933c535df8aad0b571de3ca2abe25e9331
Diagram SHA-256
54bed6a2b3ac70a603edea52f66b28ca032b56523ea3716add7ef1cec2e28887
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

menagerie.classics.wave_b_openmmlab:build_mmocr: build({})

What it is

PANet-ResNet18 follows the MMOCR version of PAN; the official README notes that PSENet and PAN are included in MMOCR.

About this model's family

PAN, the Pixel Aggregation Network, is a scene text detector for text of arbitrary shape that was designed to be both efficient and accurate. The paper names two obstacles to using scene text detection in practice: the trade-off between speed and accuracy, and modeling text instances of arbitrary shape. It notes that methods proposed for arbitrary-shaped text rarely take the speed of the entire pipeline into consideration.

PAN pairs a segmentation head of low computational cost with a learnable post-processing step. The head is made up of a Feature Pyramid Enhancement Module (FPEM) and a Feature Fusion Module (FFM). FPEM is a cascadable U-shaped module that introduces multi-level information to guide the segmentation. FFM gathers the features given by FPEMs of different depths into a final feature for segmentation. The post-processing, Pixel Aggregation (PA), aggregates text pixels using predicted similarity vectors.

The paper reports an F-measure of 79.9% at 84.2 FPS on CTW1500. The official repository holds the implementations of PSENet, PAN and PAN++ together.

Key idea. PAN pairs a low computational-cost segmentation head, built from FPEM and FFM, with a learnable Pixel Aggregation post-processing to detect arbitrary-shaped text efficiently.

  • pan
  • panet
  • pixel aggregation network
  • scene text detection
  • arbitrary-shaped text detection
  • text detector
  • fpem
  • pixel aggregation
  • mmocr panet

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

Cite the paper

@misc{wang2020efficientaccuratearbitraryshapedtext,
      title={Efficient and Accurate Arbitrary-Shaped Text Detection with Pixel Aggregation Network}, 
      author={Wenhai Wang and Enze Xie and Xiaoge Song and Yuhang Zang and Wenjia Wang and Tong Lu and Gang Yu and Chunhua Shen},
      year={2020},
      eprint={1908.05900},
      archivePrefix={arXiv},
      primaryClass={cs.CV},
      url={https://arxiv.org/abs/1908.05900}, 
}