DAN-str
Text recognizer whose attention alignment comes from a convolutional module, not from past decoding results.
Documents and OCR · 745 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
- Documents and OCR
- Parameters
- 18.2M
- Operations
- 745
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- AAAI 2020
- Cited by
- 312 (as of 27 October 2026)
- Authors
- Tianwei Wang, Yuanzhi Zhu, Lianwen Jin 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 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
- m15535
- Graph hash
- d2be9640985753c54a1ae5136924282ef06525f41cc971aaae4a155595743789
- Skeleton hash
- 867ffecf46f919f638677a5886c33187144c0714b4a53ffc56a79d866161dccf
- Architecture hash
- ec1f380ea000f29da9e775669ec9eb0e6a53449f1d0fdc07120dbc5622093d19
- Diagram SHA-256
- f74e375db8a4faa3ec27295e3adcf4f8a6be38ad18d221d7d0e1fad8f716e683
- 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
DAN, the decoupled attention network, is a text recognizer that decouples the alignment operation from historical decoding results. The paper traces a serious alignment problem in most attention methods to an alignment operation that relies on historical decoding results.
DAN has three components, starting with a feature encoder that extracts visual features from the input image. A convolutional alignment module performs the alignment operation based on the visual features from the encoder. A decoupled text decoder makes the final prediction by jointly using the feature map and the attention maps. The paper evaluates it on offline handwritten text recognition and on regular and irregular scene text recognition.
The code has separate configuration files for scene text and handwritten text. The authors describe their released scene models as single-directional and nearly well trained, with 93.3 on IIIT5K. After a bug was found, they corrected the result on the IAM dataset to CER 7.0 and WER 20.6.
Key idea. DAN decouples the alignment operation from historical decoding results by computing attention with a convolutional alignment module that works from the encoder's visual features.
- DAN
- Decoupled Attention Network
- DAN-str
- decoupled attention
- text recognition
- scene text recognition
- handwritten text recognition
- convolutional alignment module
- OCR
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{wang2019decoupledattentionnetworktext,
title={Decoupled Attention Network for Text Recognition},
author={Tianwei Wang and Yuanzhi Zhu and Lianwen Jin and Canjie Luo and Xiaoxue Chen and Yaqiang Wu and Qianying Wang and Mingxiang Cai},
year={2019},
eprint={1912.10205},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1912.10205},
}