All models

RARE-TPS-ResNet-BiLSTM-Attn

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

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 (329 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
49.6M
Operations
684
Framework
PyTorch
Recurrent
Yes
Published
ICCV 2019
Cited by
625 (as of 16 October 2026)
Authors
Jeonghun Baek, Geewook Kim, Junyeop Lee 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
m2401
Graph hash
9944bf598e09c1c0ebca168b99a76912bc7b53676022abb8ebad526d558594e8
Skeleton hash
5601462c81f5aa2cc0b30b5b4e436847c7a01c800ea02f40e8921e270d8ade76
Architecture hash
d3f2ff3f5ac881409c6ad16ca6457ebdcf6d2645163ea81e0c7f127e6c816a0f
Diagram SHA-256
20b654adacc1dfb4cb9fbfb3a72d3f317abe20d3bda5adf3a6ee8ccefd4eb7fd
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

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.

  • TPS-ResNet-BiLSTM-Attn
  • TRBA
  • deep-text-recognition-benchmark
  • RARE
  • scene text recognition
  • STR
  • Baek
  • clovaai
  • text recognition
  • thin plate spline

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

Cite the paper

@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}, 
}