
TPS-ResNet-BiLSTM-Attn
Documents and OCR684 ops49.6M params
Straighten the word with a thin-plate spline, read it with a ResNet, a BiLSTM and an attention decoder.
Documents and OCR · 684 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.
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.
About this model's family
This is TPS-ResNet-BiLSTM-Attn, the best-accuracy configuration of the deep-text-recognition-benchmark, a scene text recogniser assembled from four interchangeable stages. The framework came out of a paper arguing that scene text recognition papers could not be compared fairly because they trained and tested on inconsistent datasets. Its four stages are transformation, feature extraction, sequence modelling and prediction, and existing models and new combinations are all expressed as choices at each stage.
The transformation stage here is a thin-plate spline, a kind of spatial transformer that finds fiducial points along the top and bottom of the word and straightens the character region into a rectangle. That rectification idea comes from RARE, which pairs a spatial transformer network with a sequence recognition network so that irregular text is rectified before it is read. A ResNet then extracts features, whose columns are read as a sequence of frames. A bidirectional LSTM adds context across that sequence. The attention-based predictor decodes characters one by one and, in the paper's words, learns a character-level language model over the output classes.
Under this naming RARE itself is TPS-VGG-BiLSTM-Attn, so the traced model is RARE with its VGG swapped for a ResNet. The repository calls this combination TRBA and its best accuracy model, with pretrained weights available for download. The two members in the Menagerie are the same configuration built twice under different names.
Key idea. The Baek et al. framework splits any scene text recogniser into four swappable stages and evaluates every combination on one consistent dataset, so module contributions to accuracy, speed and memory can finally be compared.
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
@misc{baek2019wrongscenetextrecognition,
title={What Is Wrong With Scene Text Recognition Model Comparisons? Dataset and Model Analysis},
author={Jeonghun Baek and Geewook Kim and Junyeop Lee and Sungrae Park and Dongyoon Han and Sangdoo Yun and Seong Joon Oh and Hwalsuk Lee},
year={2019},
eprint={1904.01906},
archivePrefix={arXiv},
primaryClass={cs.CV},
url={https://arxiv.org/abs/1904.01906},
}