Convolutional Recurrent Neural Network
Requirements
- python 3.5+
- pytorch 1.1
- lmdn
- opencv
Data Preparation
Prepare a text in the following format
/path/to/img/img.jpg helloword
...
Train
- config the
train_file
,test_file
in config.json - generate alphabet
use fellow script to generate alphabet and copy the output to
alphabet
inconfig.json
python3 utils/get_keys.py --label_file /path/to/label_file1 /path/to/label_file2 ...
- use fellow script to run
python3 train.py
Predict
predict.py is used to inference on single image
- config
model_path
,img_path
in predict.py - use fellow script to predict
python3 predict.py