Replies: 1 comment
-
新版本的推理模型都用 paddleX 提供的推理能力,且新版本的模型推理 inference.yaml 中会有一个 global.model_name 的字段 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
class TextDetector(object):
def init(self, args, logger=None):
if os.path.exists(f"{args.det_model_dir}/inference.yml"):
model_config = utility.load_config(f"{args.det_model_dir}/inference.yml")
model_name = model_config.get("Global", {}).get("model_name", "")
if model_name:
raise ValueError(
f"{model_name} is not supported. Please check if the model is supported by the PaddleOCR wheel."
)
这部分代码的意思是 新版开源的模型(含有inference.yml)的都会报错?
Beta Was this translation helpful? Give feedback.
All reactions