senlinuc / caffe_ocr

主流ocr算法研究实验性的项目,目前实现了CNN+BLSTM+CTC架构
1.26k stars 535 forks source link

ocr_test densenet-no-blstm cpu模式前向识别报错: Trying to copy blobs of different sizes. #31

Open huiyang865 opened 6 years ago

huiyang865 commented 6 years ago

大家好,我这里应用ocr_test项目(densenet-no-blstm网络)测试多张图片识别效果时,当用gpu模式是可以顺利进行。但是,当我应用cpu模式时,会报错:Trying to copy blobs of different sizes.

简单分析以后,发现识别第一张图片时没有问题,但是识别第二张图片时,在DenseBlocklayer层会出现:source.count() != count 问题,进而引发报错信息!

senlinuc commented 6 years ago

denseblock层的cpu代码好像是有问题的。

twinsyssy1018 commented 5 years ago

@huiyang865 这个问题有解决么

sunjunlishi commented 5 years ago

奥,第二张时,用的还是但是的net。要重新new 个net吧。cpu 我还没有测试成功,发现非常非常慢。

sunjunlishi commented 5 years ago

@huiyang865 你有化成 openblas 调用了?我想慢慢改,应该可以实现 openbals版本的,对很多人,都比较有用。甚至语音识别。

sunjunlishi commented 5 years ago

@huiyang865 对了我cpu的版本识别字符有问题;你的cpu识别没问题?