|
5 tahun lalu | |
---|---|---|
.idea | 5 tahun lalu | |
images | 5 tahun lalu | |
lib | 5 tahun lalu | |
output | 5 tahun lalu | |
README.md | 5 tahun lalu | |
demo.py | 5 tahun lalu | |
train.py | 5 tahun lalu |
A Chinese characters recognition repository based on convolutional recurrent networks.
Edit lib/config/360CC_config.yaml DATA:ROOT to you image path
DATASET:
ROOT: 'to/your/images/path'
Put char_std_5990.txt in lib/dataset/txt/
Download the labels in here (password: w877)
And put train.txt and test.txt in lib/dataset/txt/
eg. test.txt
20456343_4045240981.jpg 89 201 241 178 19 94 19 22 26 656
20457281_3395886438.jpg 120 1061 2 376 78 249 272 272 120 1061
...
Edit lib/config/OWN_config.yaml DATA:ROOT to you image path
DATASET:
ROOT: 'to/your/images/path'
And put your train_own.txt and test_own.txt in lib/dataset/txt/
eg. test_own.txt
20456343_4045240981.jpg 你好啊!祖国!
20457281_3395886438.jpg 晚安啊!世界!
...
note: fixed-length supported. yet you can modify dataloader to support random length.
[run] python train.py --cfg lib/config/360CC_config.yaml
[run] cd output/360CC/crnn/xxxx-xx-xx-xx-xx/
[run] tensorboard --logdir log
[run] python demo.py --image_path images/test.png --checkpoints output/checkpoints/mixed_second_finetune_acc_97P7.pth