Skip to content

liuch37/sar-pytorch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Show, Attend and Read - A PyTorch Implementation

Implementation of Show, Attend and Read: A Simple and Strong Baseline for Irregular Text Recognition in AAAI 2019, with PyTorch >= v1.4.0.

Task

  • Backbone model
  • Encoder model
  • Decoder model
  • Integrated model
  • Data processing
  • Training pipeline
  • Inference pipeline

Supported Dataset

Command

Training

python train.py --batch 32 --epoch 5000 --dataset ./svt --dataset_type svt --gpu True

Inference

python inference.py --batch 32 --input input_folder --model model_path --gpu True

Results

SVT

Statstics for SVT training

IIIT5K

Statstics for IIIT5K training

Input:

Input image

Output attention map per character:

Attention map for char 0 Attention map for char 1

Syn90K (10k for training/3k for testing)

Statstics for Syn90K training

Input:

Input image

Output attention map per character:

Attention map for char 0 Attention map for char 1 Attention map for char 2 Attention map for char 3 Attention map for char 4 Attention map for char 5 Attention map for char 6 Attention map for char 7

SynthText (80k for training/20k for testing)

Statstics for SynthText training

Input:

Input image

Output attention map per character:

Attention map for char 0 Attention map for char 1 Attention map for char 2

Source

[1] Original paper: https://arxiv.org/abs/1811.00751

[2] Official code by the authors in torch: https://github.com/wangpengnorman/SAR-Strong-Baseline-for-Text-Recognition

[3] A TensorFlow implementation: https://github.com/Pay20Y/SAR_TF

About

Implementation of Show, Attend and Read: A Simple and Strong Baseline for Irregular Text Recognition published in AAAI 2019 in PyTorch

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages