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

paddleclas使用table_attribute_infer模型推理,一直提示NameError: name 'beta2' is not defined #3316

Open
lyl0809 opened this issue Dec 6, 2024 · 1 comment
Assignees

Comments

@lyl0809
Copy link

lyl0809 commented Dec 6, 2024

Traceback (most recent call last):
File "E:\ANACONDA\envs\paddle_env\table_atti\table_atti_p.py", line 9, in
model = paddleclas.PaddleClas(build_gallery=False,model_name='table_attribute',inference_model_dir='table_attribute_infer')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ANACONDA\envs\paddle_env.venv\Lib\site-packages\paddleclas\paddleclas.py", line 610, in init
self.predictor = ClsPredictor(self._config)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ANACONDA\envs\paddle_env.venv\Lib\site-packages\paddleclas\deploy\python\predict_cls.py", line 28, in init
super().init(config["Global"])
File "E:\ANACONDA\envs\paddle_env.venv\Lib\site-packages\paddleclas\deploy\utils\predictor.py", line 37, in init
self.predictor, self.config = self.create_paddle_predictor(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\ANACONDA\envs\paddle_env.venv\Lib\site-packages\paddleclas\deploy\utils\predictor.py", line 60, in create_paddle_predictor
pd_version = 10 * pd_version + eval(v)
^^^^^^^
File "", line 1, in
NameError: name 'beta2' is not defined

@liu-jiaxuan
Copy link
Collaborator

Hi,请试下PaddleX,在PaddleX中可能会修复套件的潜在问题

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