ddddocr 运行报错 RuntimeError: /onnxruntime_src…pthread_setaffinity_np failed, error code: 0 error
import ddddocr
ocr = ddddocr.DdddOcr()
运行出错:
RuntimeError: /onnxruntime_src...pthread_setaffinity_np failed, error code: 0 error
参考:https://github.com/microsoft/onnxruntime/issues/10113
将 onnxruntime 版本降低后,可能正常运行:
pip install onnxruntime==1.6