CDistNet
A scene text recognizer that uses a position embedding to tie visual and semantic features to each character.
Documents and OCR · 847 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
- 65.5M
- Operations
- 847
- Framework
- PyTorch
- Recurrent
- No
- Published
- International Journal of Computer Vision (accepted 2023)
- Cited by
- 95 (as of 27 October 2026)
- Authors
- Tianlun Zheng, Zhineng Chen, Shancheng Fang and others
- Source
- GitHub: simplify23/CDistNet
- 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 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
- m15067
- Graph hash
- 962488a4133057920c17be81fae18f78e6746aa0d8db79b596be147fab4dfcf4
- Skeleton hash
- 68ec8523410e76dc93fe6312b42945f4c15042a4fc4550dc808452fcc593fd98
- Architecture hash
- c0c52d64d5782600be0433cbdf72b0e63d34195caba651e4693478157cc2f513
- Diagram SHA-256
- f12a7b204008d2fe3e4640db63b40e1d81a3adafe44b43f73a7cfb4613935dc7
- 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
CDistNet is a scene text recognizer, a model that reads the characters in an image of text. It belongs to the Transformer-based encoder-decoder framework, which the paper says integrates recognition clues from both visual and semantic domains. The problem the paper addresses is that the two kinds of clues are not always well registered, so features and characters can be misaligned in difficult text.
Its module, Multi-Domain Character Distance Perception (MDCDP), uses a position embedding to query both visual and semantic features with cross-attention. The two kinds of clues are fused into the position branch, giving a content-aware embedding that perceives character spacing and orientation variants and character semantic affinities. CDistNet stacks three MDCDPs, and the output of the last one is used to decode the characters sequentially.
In the visual branch, ResNet-45 and Transformer units are employed as the backbone. In the paper's ablation the best accuracy is reported with three MDCDPs, better than with one, two or four. The authors verify CDistNet on ten public datasets and two series of augmented datasets that they created.
Key idea. CDistNet introduces the MDCDP module, in which a position embedding queries visual and semantic features by cross-attention, and stacks it to align features with characters.
- cdistnet
- multi-domain character distance perception
- mdcdp
- scene text recognition
- text recognition
- character distance
- ocr
- position embedding
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{zheng2023cdistnetperceivingmultidomaincharacter,
title={CDistNet: Perceiving Multi-Domain Character Distance for Robust Text Recognition},
author={Tianlun Zheng and Zhineng Chen and Shancheng Fang and Hongtao Xie and Yu-Gang Jiang},
year={2023},
eprint={2111.11011},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/2111.11011},
}