Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Official Pytorch implementations of TPS++: Attention-Enhanced Thin-Plate Spline for Scene Text Recognition (IJCAI 2023)

License

NotificationsYou must be signed in to change notification settings

simplify23/TPS_PP

Repository files navigation

1682662695807

The official code of TPS_PP (IJCAI 2023)Paper Link

TPS++, an attention-enhanced TPS transformation that incorporates the attention mechanism to text rectification for the first time. TPS++ builds a more flexible content-aware rectifier, generating a natural text correction that is easier to read by the subsequent recognizer. This code is based on MMOCR 0.4.0 (Documentation ) withPyTorch 1.6+.

Code List

  • NRTR + TPS_PP
  • CRNN + TPS_PP
  • ABINet-LV + TPS_PP

Installation

Please refer toInstall Guide.

Get Started

Please seeGetting Started for the basic usage of MMOCR 0.4.0.

Datasets

The specific configuration of the dataset for training and testing can be found hereDataset Document

testing ├── mixture│   ├── icdar_2013│   ├── icdar_2015│   ├── III5K│   ├── ct80│   ├── svt│   ├── svtptraining├── mixture│   ├── Syn90k│   ├── SynthText

Pretrained Models

Get the pretrained models fromBaiduNetdisk(passwd:cd9r),GoogleDrive.checkpoint model inmodel/xxx/latest.pth, pre-train model inpre_train/xxx/latest.pth

MethodsIIIT5KSVTIC13IC15SVTPCUTEAVG
NRTR + TPS_PP96.394.696.685.789.092.492.4
NRTR + TPS_PP *95.695.197.285.989.890.392.3

First, the model needs to be pre-trained using without TPS_PP (pre-train), and then trained end-to-end with a network that incorporates TPS_PP (checkpoint). * denotes the performance of the implemented code. checkpoint model inmodel/xxx/latest.pth, pre-train model inpre_train/xxx/latest.pth.

Train

Please refer to the training configurationTraining Doc

NRTR+TPS++

Setp 1 : DownloadNRTRpre_train/nrtr/latest.pth inmmocr_ijcai/nrtr/latest.pth

#Step 2PORT=1234 ./tools/dist_train.sh configs/textrecog/nrtr/nrtr_tps++.py ./ckpt/ijcai_nrtr_tps_pp 4           --seed=123456 --load-from=mmocr_ijcai/nrtr/nrtr_latest.pth

Testing

Please refer to the testing configurationTesting Doc

Acknowledgement

This code is based onMMOCR

Citation

If you find our method useful for your reserach, please cite

@article{zheng2023tps++,  title={TPS++: Attention-Enhanced Thin-Plate Splinefor Scene Text Recognition},  author={Zheng, Tianlun and Chen, Zhineng and Bai, Jinfeng and Xie, Hongtao and Jiang, Yu-Gang},  journal={IJCAI},  year={2023}}

License

This project is released under theApache 2.0 license.

About

Official Pytorch implementations of TPS++: Attention-Enhanced Thin-Plate Spline for Scene Text Recognition (IJCAI 2023)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp