YCG09 / chinese_ocr

CTPN + DenseNet + CTC based end-to-end Chinese OCR implemented using tensorflow and keras
Apache License 2.0
2.73k stars 1.08k forks source link

重新训练densenet 问题 #152

Open gydlcc opened 5 years ago

gydlcc commented 5 years ago

file:///home/gyd/%E5%9B%BE%E7%89%87/2018-12-29%2015-11-47%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE.png 我用您百度网盘里的数据重新训练了densenet,然后用训练好的模型去跑demo.py 出现了上图情况,请问这是什么情况。

gydlcc commented 5 years ago

2018-12-29 15-11-47 这个是识别结果

YCG09 commented 5 years ago

确认下模型是否加载成功了,模型命名注意'-'和'_'的区别

banbsyip commented 5 years ago

确认下模型是否加载成功了,模型命名注意'-'和'_'的区别

训练的时候/models/pretrain_model/keras.h5中的keras.h5文件要去哪下呢?

YCG09 commented 5 years ago

@banbsyip 这个是需要自己训练的,也可以没有,从头训练

JJoohhnnn commented 5 years ago

@banbsyip 这个是需要自己训练的,也可以没有,从头训练

@YCG09 请问如何从头训练呢?

JJoohhnnn commented 5 years ago

请问你图片里的问题是怎么解决啊?

hello2sys commented 5 years ago

@gydlcc 请问下您这个问题是如何解决的,我也遇到这个问题,生成的weights模型我是通过basemodel.load_weights(modelPath,by_name=True)加载进去的。