chineseocr / darknet-ocr

darknet text detect and darknet cnn ocr
MIT License
1.14k stars 285 forks source link

: Unknown error 1362440885 #20

Open abovegrd opened 4 years ago

abovegrd commented 4 years ago

大神,您好:

大概测试了一下,cpu版本是没有问题的, 但gpu版本在运行时,会报:: Unknown error 1362440885 的错误,程序退出。 初步定位了下,是在:dnn/text.py 的14行: textNet = load_net(textPath.replace('.weights','.cfg').encode(),textPath.encode(), 0) 运行这一步时,报的错, 没有其他输出信息。 请问这个是什么原因导致的? 谢谢。

wenlihaoyu commented 4 years ago

默认是python3.6,python2.7不用decod()

abovegrd commented 4 years ago

我用的是python3.6.7的环境. 请问是不是同: parse_network_cfg 中的 First section must be [net] or [network]: Success 这个有关?

junthy-me commented 4 years ago

大神,您好:

大概测试了一下,cpu版本是没有问题的, 但gpu版本在运行时,会报:: Unknown error 1362440885 的错误,程序退出。 初步定位了下,是在:dnn/text.py 的14行: textNet = load_net(textPath.replace('.weights','.cfg').encode(),textPath.encode(), 0) 运行这一步时,报的错, 没有其他输出信息。 请问这个是什么原因导致的? 谢谢。

请问你在CPU下运行时有没有遇到这个错误呢: File "ocr.py", line 26, in ocrNet = cv2.dnn.readNetFromDarknet(ocrPath.replace('.weights','.cfg'),ocrPath) cv2.error: OpenCV(4.0.0) /io/opencv/modules/dnn/src/darknet/darknet_io.cpp:552: error: (-212:Parsing error) Unsupported activation: relu in function 'ReadDarknetFromCfgStream'