NRTR

February 16, 2023 ยท View on GitHub

NRTR: A No-Recurrence Sequence-to-Sequence Model For Scene Text Recognition

Abstract

Scene text recognition has attracted a great many researches due to its importance to various applications. Existing methods mainly adopt recurrence or convolution based networks. Though have obtained good performance, these methods still suffer from two limitations: slow training speed due to the internal recurrence of RNNs, and high complexity due to stacked convolutional layers for long-term feature extraction. This paper, for the first time, proposes a no-recurrence sequence-to-sequence text recognizer, named NRTR, that dispenses with recurrences and convolutions entirely. NRTR follows the encoder-decoder paradigm, where the encoder uses stacked self-attention to extract image features, and the decoder applies stacked self-attention to recognize texts based on encoder output. NRTR relies solely on self-attention mechanism thus could be trained with more parallelization and less complexity. Considering scene image has large variation in text and background, we further design a modality-transform block to effectively transform 2D input images to 1D sequences, combined with the encoder to extract more discriminative features. NRTR achieves state-of-the-art or highly competitive performance on both regular and irregular benchmarks, while requires only a small fraction of training time compared to the best model from the literature (at least 8 times faster).

Dataset

Train Dataset

trainsetinstance_numrepeat_numsource
SynthText72666861synth
Syn90k89192731synth

Test Dataset

testsetinstance_numtype
IIIT5K3000regular
SVT647regular
IC131015regular
IC152077irregular
SVTP645irregular
CT80288irregular

Results and Models

MethodsBackboneRegular TextIrregular Textdownload
IIIT5KSVTIC13-1015IC15-2077SVTPCT80
NRTRNRTRModalityTransform0.91470.88410.93690.72460.77830.7500model | log
NRTR-TTANRTRModalityTransform0.91230.88250.93100.74920.77980.7535
NRTRR31-1/8-1/40.94830.89180.95070.75780.80160.8889model | log
NRTR-TTAR31-1/8-1/40.94430.89030.94780.77900.80780.8854
NRTRR31-1/16-1/80.94700.89180.93990.73760.79690.8854model | log
NRTR-TTAR31-1/16-1/80.94230.89030.93600.76410.80160.8854

Citation

@inproceedings{sheng2019nrtr,
  title={NRTR: A no-recurrence sequence-to-sequence model for scene text recognition},
  author={Sheng, Fenfen and Chen, Zhineng and Xu, Bo},
  booktitle={2019 International Conference on Document Analysis and Recognition (ICDAR)},
  pages={781--786},
  year={2019},
  organization={IEEE}
}