Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

执行paddlex export的时候报错了 #3575

Open
4 tasks
liuwqiang opened this issue Mar 11, 2025 · 1 comment
Open
4 tasks

执行paddlex export的时候报错了 #3575

liuwqiang opened this issue Mar 11, 2025 · 1 comment
Assignees

Comments

@liuwqiang
Copy link

Checklist:

描述问题

paddlex版本:3.0-rc

python main.py -c paddlex/configs/modules/layout_detection/PP-DocLayout-L.yaml -o Global.mode=export -o Export.weight_path=/home/fastdeploy/DocLayout/PP-DocLayout-L_pretrain.pdparams

WARNING:root:failed to import ujson, using json instead
The config file(/home/fastdeploy/DocLayout/config.yaml) related to weight file(/home/fastdeploy/DocLayout/PP-DocLayout-L_pretrain.pdparams) is not exist, use default instead.
Traceback (most recent call last):
File "/home/fastdeploy/PaddleX/paddlex/repo_apis/base/config.py", line 30, in _create_config
model_info = get_registered_model_info(model_name)
File "/home/fastdeploy/PaddleX/paddlex/repo_apis/base/register.py", line 78, in query
return self._table[prim_key]
KeyError: 'PP-DocLayout-L'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "/home/fastdeploy/PaddleX/paddlex/utils/result_saver.py", line 29, in wrap
result = func(self, *args, **kwargs)
File "/home/fastdeploy/PaddleX/paddlex/engine.py", line 47, in run
return self._model.export()
File "/home/fastdeploy/PaddleX/paddlex/model.py", line 108, in export
exportor = build_exportor(self._config)
File "/home/fastdeploy/PaddleX/paddlex/modules/base/exportor.py", line 44, in build_exportor
return BaseExportor.get(model_name)(config)
File "/home/fastdeploy/PaddleX/paddlex/modules/base/exportor.py", line 66, in init
self.pdx_config, self.pdx_model = build_model(
File "/home/fastdeploy/PaddleX/paddlex/modules/base/build_model.py", line 32, in build_model
config = Config(model_name, config_path)
File "/home/fastdeploy/PaddleX/paddlex/repo_apis/base/config.py", line 32, in _create_config
raise UnsupportedParamError(
paddlex.utils.errors.others.UnsupportedParamError: 'PP-DocLayout-L' is not a registered model name.

请问这个该怎么处理?

@liu-jiaxuan
Copy link
Collaborator

需要参考安装文档,先安装paddlex和paddledetection插件

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants