## Train CRNN
To train your own model, firstly you need to prepare your own text-line dataset, and organize your dataset with an infoile.
In the infofile, each line represents an text-line image, path to image and image label are splited by a special character '\t'.
Such as follows:
>data_set/my_data1/0001.jpg\t37918
data_set/my_data1/0002.jpg\tHello World!
data_set/my_data1/0003.jpg\t你好
...
Then replace your infofile by your own in the training file train_warp_ctc.py
>config.train_infofile = ['path_to_train_infofile1.txt','path_to_train_infofile2.txt']
config.val_infofile = 'path_to_test_infofile.txt'
Then if you want to use warp-ctc as loss function, run
>python3 train_warp_ctc.py
or if you want to use pytorch-ctc as loss function, run
>python3 train_pytorch_ctc.py
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Pytorch学习记录分享13-OCR(Optical Character Recognition,光学字符识别) (447个子文件)
img_7100.jpg 1.63MB
img_7023.jpg 1.5MB
img_7048.jpg 1.47MB
img_7039.jpg 1.35MB
img_7050.jpg 1.29MB
img_7009.jpg 1.29MB
img_7049.jpg 1.28MB
img_7018.jpg 1.24MB
img_7011.jpg 1.24MB
img_7052.jpg 1.22MB
img_7114.jpg 1.21MB
img_7002.jpg 1.2MB
img_7058.jpg 1.2MB
img_7015.jpg 1.18MB
img_7063.jpg 1.18MB
img_7066.jpg 1.17MB
img_7077.jpg 1.15MB
img_7056.jpg 1.14MB
img_7121.jpg 1.14MB
img_7022.jpg 1.14MB
img_7091.jpg 1.13MB
img_7059.jpg 1.13MB
img_7040.jpg 1.13MB
img_7089.jpg 1.12MB
img_7065.jpg 1.12MB
img_7045.jpg 1.12MB
img_7025.jpg 1.12MB
img_7055.jpg 1.11MB
img_7035.jpg 1.11MB
img_7053.jpg 1.11MB
img_7051.jpg 1.11MB
img_7041.jpg 1.1MB
img_7135.jpg 1.1MB
img_7072.jpg 1.1MB
img_7034.jpg 1.1MB
img_7088.jpg 1.1MB
img_7016.jpg 1.1MB
img_7067.jpg 1.1MB
img_7090.jpg 1.1MB
img_7130.jpg 1.09MB
img_7064.jpg 1.09MB
img_7076.jpg 1.09MB
img_7082.jpg 1.09MB
img_7029.jpg 1.09MB
img_7062.jpg 1.09MB
img_7069.jpg 1.09MB
img_7070.jpg 1.09MB
img_7017.jpg 1.09MB
img_7044.jpg 1.09MB
img_7010.jpg 1.08MB
img_7068.jpg 1.08MB
img_7043.jpg 1.08MB
img_7092.jpg 1.08MB
img_7008.jpg 1.08MB
img_7042.jpg 1.07MB
img_7095.jpg 1.07MB
img_7087.jpg 1.07MB
img_7027.jpg 1.07MB
img_7037.jpg 1.07MB
img_7073.jpg 1.07MB
img_7085.jpg 1.07MB
img_7093.jpg 1.07MB
img_7084.jpg 1.07MB
img_7074.jpg 1.06MB
img_7013.jpg 1.06MB
img_7098.jpg 1.06MB
img_7030.jpg 1.06MB
img_7099.jpg 1.06MB
img_7075.jpg 1.05MB
img_7086.jpg 1.05MB
img_7019.jpg 1.05MB
img_7096.jpg 1.05MB
img_7014.jpg 1.05MB
img_7026.jpg 1.05MB
img_7032.jpg 1.05MB
img_7031.jpg 1.04MB
img_7060.jpg 1.04MB
img_7024.jpg 1.04MB
img_7081.jpg 1.04MB
img_7097.jpg 1.03MB
img_7006.jpg 1.03MB
img_7078.jpg 1.03MB
img_7071.jpg 1.03MB
img_7094.jpg 1.03MB
img_7054.jpg 1.03MB
img_7003.jpg 1.03MB
img_7083.jpg 1.03MB
img_7028.jpg 1.03MB
img_7004.jpg 1.03MB
img_7007.jpg 1.02MB
img_7033.jpg 1.02MB
img_7080.jpg 1.02MB
img_7047.jpg 1.02MB
img_7036.jpg 1.01MB
img_7021.jpg 1.01MB
img_7038.jpg 1MB
img_7020.jpg 1MB
img_7061.jpg 1MB
img_7012.jpg 1MB
img_7005.jpg 1009KB
共 447 条
- 1
- 2
- 3
- 4
- 5
资源评论
大江东去浪淘尽千古风流人物
- 粉丝: 1w+
- 资源: 26
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功