paddleocr 3版本使用docker部署时,显示Successfully installed ocr_system-1.0.0后报错ValueError: (InvalidArgument) Type of attribute: round_type is not pir::Int32Attribute. [Hint: Expected attributes.at("round_type").isa<pir::Int32Attribute>() == true, but received attributes.at("round_type").isa<pir::Int32Attribute>():0 != true:1.] (at /paddle/build/paddle/fluid/pir/dialect/operator/ir/pd_op2.cc:9057) #15989
-
是版本不兼容问题吗?应该修改哪里? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 6 replies
-
完整报错如下: |
Beta Was this translation helpful? Give feedback.
您好,确实是文本行分类模型太老,需要更换了,可以执行下面的命令下载最新的文本行模型
然后把
PaddleOCR/deploy/hubserving/ocr_system/params.py
Line 58 in b34d8fa
比如:
最后,到
PaddleOCR/tools/infer/predict_cls.py
Line…