sml2h3 / ddddocr

带带弟弟 通用验证码识别OCR pypi版
https://ddddocr.com
MIT License
9.17k stars 1.67k forks source link

解析每次都弹警告信息 #7

Closed arvinyi closed 2 years ago

arvinyi commented 2 years ago

2021-07-30 15:45:48.3226553 [W:onnxruntime:, execution_frame.cc:721 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {1,19} does not match actual shape of {1,20} for output output screenImg03

sml2h3 commented 2 years ago

假装看不到吧,这个我也不知道该咋解决了。。

2021-07-30 15:45:48.3226553 [W:onnxruntime:, execution_frame.cc:721 onnxruntime::ExecutionFrame::VerifyOutputSizes] Expected shape from model of {1,19} does not match actual shape of {1,20} for output output screenImg03

epver commented 2 years ago

你可以设置

onnxruntime.set_default_logger_severity(3)

来源链接

arvinyi commented 2 years ago

I don't know the means number(3),can you explain it

instant-high commented 2 years ago

Insert this code into _./insightface_func/face_detect_cropsingle.py and _./insightface_func/face_detect_cropmulti.py to supress error msg:

10 import onnxruntime 11 onnxruntime.set_default_logger_severity(3)

This will show if onnx running on CPU or GPU: 12 print( "Running on: " + onnxruntime.get_device() ) optional:

13 input("Press Enter to continue...")

wsgehaishan520 commented 2 years ago

https://blog.csdn.net/weixin_38443388/article/details/108677003

sml2h3 commented 2 years ago

pip安装1.0.9版即可