DayBreak-u / chineseocr_lite

超轻量级中文ocr,支持竖排文字识别, 支持ncnn、mnn、tnn推理 ( dbnet(1.8M) + crnn(2.5M) + anglenet(378KB)) 总模型仅4.7M
GNU General Public License v2.0
11.84k stars 2.26k forks source link

layer load_param 106 611 failed #433

Open wode2016501 opened 1 year ago

wode2016501 commented 1 year ago

~/src/ocr-lite-ncnn-1.6.1 $ ~/src/ocr-lite-ncnn-1.6.1 $ ~/src/ocr-lite-ncnn-1.6.1 $ bash run-test.sh Setting the Number of Threads=8 Using an OpenMP Environment Variable Gpu版本测试前请先安装Vulkan SDK v1.2.162.0,https://vulkan.lunarg.com/sdk/home 请输入测试选项并回车: 1)CPU, 2)GPU 1 版本 1.6.0.20211013 测试 modelsPath=models model dbnet path=models/dbnet_op model angle path=models/angle_op model crnn path=models/crnn_lite_op keys path=models/keys.txt imgDir=images/, imgName=1.jpg resultTxtPath(images/1.jpg-result.txt) =====Input Params===== numThread(8),padding(50),maxSideLen(0),boxScoreThresh(0.600000),boxThresh(0.300000),unClipRatio(2.000000),doAngle(1),mostAngle(1),GPU(-1) =====Init Models===== --- Init DbNet --- --- Init AngleNet --- param is too old, please regenerate! layer load_param 106 611 failed run-test.sh: line 61: 14143 Segmentation fault ./${EXE_PATH}/OcrLiteNcnn --models models --det dbnet_op --cls angle_op --rec crnn_lite_op --keys keys.txt --image $TARGET_IMG --numThread $NUM_THREADS --padding 50 --maxSideLen 0 --boxScoreThresh 0.6 --boxThresh 0.3 --unClipRatio 2.0 --doAngle 1 --mostAngle 1 --GPU $GPU_INDEX

benjaminwan commented 1 year ago

模型,重新下载

wode2016501 commented 1 year ago

在哪里下载呀

benjaminwan commented 1 year ago

https://github.com/benjaminwan/OcrLiteAndroidNcnn/tree/master/OcrLibrary/src/main/assets