caffe_ocr icon indicating copy to clipboard operation
caffe_ocr copied to clipboard

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

Open huiyang865 opened this issue 8 years ago • 5 comments

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

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

huiyang865 avatar Dec 25 '17 08:12 huiyang865

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

senlinuc avatar Dec 28 '17 14:12 senlinuc

@huiyang865 这个问题有解决么

twinsyssy1018 avatar Apr 02 '19 11:04 twinsyssy1018

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

sunjunlishi avatar Aug 06 '19 13:08 sunjunlishi

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

sunjunlishi avatar Aug 06 '19 13:08 sunjunlishi

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

sunjunlishi avatar Aug 07 '19 01:08 sunjunlishi