GlassyWing / text-detection-ocr

Chinese text detection and recognition based on CTPN + DENSENET using Keras and Tensor Flow,使用keras和tensorflow基于CTPN+Densenet实现的中文文本检测和识别
Apache License 2.0
285 stars 116 forks source link

ctpn单个数据预测时内存占用巨大10多个G #20

Open TANGELIAN opened 4 years ago

TANGELIAN commented 4 years ago

图片3000*3000就报错,terminate called after throwing an instance of 'std::bad_alloc’what(): std::bad_alloc。你们又遇到这种情况吗?具体是什么原因可以指点一下吗

GlassyWing commented 4 years ago

ctpn的确占用量大,最好对图像进行裁剪或缩放