MCPcopy Index your code
hub / github.com/ayumiymk/aster.pytorch

github.com/ayumiymk/aster.pytorch @v1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0 ↗ · + Follow
137 symbols 460 edges 27 files 17 documented · 12%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ASTER: Attentional Scene Text Recognizer with Flexible Rectification

This repository implements the ASTER in pytorch. Origin software could be found in here.

ASTER is an accurate scene text recognizer with flexible rectification mechanism. The research paper can be found here.

ASTER Overview

Installation

conda env create -f environment.yml

Train

bash scripts/stn_att_rec.sh

Test

bash scripts/main_test_all.sh

Reproduced results

IIIT5k SVT IC03 IC13 IC15 SVTP CUTE
ASTER (L2R) 92.67 - 93.72 90.74 - 78.76 76.39
ASTER.Pytorch 93.2 89.2 92.2 91 78.0 81.2 81.9

At present, the bidirectional attention decoder proposed in ASTER is not included in my implementation.

You can use the codes to bootstrap for your next text recognition research project.

Data preparation

We give an example to construct your own datasets. Details please refer to tools/create_svtp_lmdb.py.

Citation

If you find this project helpful for your research, please cite the following papers:

@article{bshi2018aster,
  author  = {Baoguang Shi and
               Mingkun Yang and
               Xinggang Wang and
               Pengyuan Lyu and
               Cong Yao and
               Xiang Bai},
  title   = {ASTER: An Attentional Scene Text Recognizer with Flexible Rectification},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence}, 
  volume  = {}, 
  number  = {}, 
  pages   = {1-1},
  year    = {2018}, 
}

@inproceedings{ShiWLYB16,
  author    = {Baoguang Shi and
               Xinggang Wang and
               Pengyuan Lyu and
               Cong Yao and
               Xiang Bai},
  title     = {Robust Scene Text Recognition with Automatic Rectification},
  booktitle = {2016 {IEEE} Conference on Computer Vision and Pattern Recognition,
               {CVPR} 2016, Las Vegas, NV, USA, June 27-30, 2016},
  pages     = {4168--4176},
  year      = {2016}
}

IMPORTANT NOTICE: Although this software is licensed under MIT, our intention is to make it free for academic research purposes. If you are going to use it in a product, we suggest you contact us regarding possible patent issues.

Core symbols most depended-on inside this repo

Shape

Method 68
Function 48
Class 21

Languages

Python100%

Modules by API surface

lib/datasets/dataset.py15 symbols
lib/utils/logging.py14 symbols
lib/models/attention_recognition_head.py14 symbols
lib/models/resnet_aster.py10 symbols
lib/trainers.py8 symbols
lib/evaluators.py8 symbols
lib/evaluation_metrics/metrics.py8 symbols
lib/models/tps_spatial_transformer.py6 symbols
lib/models/stn_head.py6 symbols
lib/datasets/concatdataset.py6 symbols
lib/utils/serialization.py5 symbols
lib/loss/sequenceCrossEntropyLoss.py5 symbols

For agents

$ claude mcp add aster.pytorch \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page