Skip to content

Navigation Menu

Sign in
Appearance settings

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

Appearance settings

ilovin/lstm_ctc_ocr

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • old master:
    • harder to converge compare to the beta version
    • both standard ctc and warpCTC
    • read data at once
  • dev:
    • the pipline version of lstm_ctc_ocr, resize to same size
    • use tf.records
  • beta (current):
    • generate data on the fly
    • deal with multi-width image, padding to same width

How to use

  1. ./train.sh

Dependency

Some details

The training data:
data

Notice that, parameters can be found in ./lstm.yml(higher priority) and lib/lstm/utils/config.y
some parameters need to be fined tune:

  • learning rate
  • decay step & decay rate
  • image_height
  • optimizer?

in ./lib/lstm/utils/gen.py, the height of the images are the same, and I pad the width to the same for each batch, so if you want to use your own data, the height of the image shall be the same.

Result

The accurary can be more that 95% acc

Read this blog for more details and this blog for how to use tf.nn.ctc_loss or warpCTC

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  
Morty Proxy This is a proxified and sanitized view of the page, visit original site.