Home

Awesome

Show, Attend and Read: A Simple and Strong Baseline for Irregular Text Recognition [AAAI-2019]

Introduction

This is an unofficial implementation of Show, Attend and Read: A Simple and Strong Baseline for Irregular Text Recognition
Official Torch implementation can be found here
Another PyTorch implementation can be found here

How to use

Install

pip3 install -r requirements.txt

Demo

python3 test.py --test_data_dir ./demo_data --checkpoints ./sar_synall_lmdb_checkpoints_2epochs -g "0" --vis_dir ./visualize

Train

Test

Similar to demo and you can also provide annotation and it will calculate accuracy

python3 test.py --test_data_dir /path/to/your/test/images/dir --test_data_gt /path/to/your/test/annotation/file(optional) --checkpoints /path/to/trained/checkpoints -g "0"

Export frozen model

If you want to create a predicion server, you can export the frozen model with this command

python3 freeze.py

By default it will take the last checkpoint in the ./checkpoints folder. To change it, use the --checkpoints parameter.

Reproduced results

IC13IC15SVTPCUTE
Official91.069.276.483.3
This One91.869.675.183.6

Examples

image_1 image_2