Skip to content

paddlex_hps_table_recognition_v2_sdk 服务端报错 #4603

@RockL888

Description

@RockL888

Checklist:

描述问题

复现

  1. 服务化部署
    paddlex_hps_table_recognition_v2_sdk 服务端启动正常,当通过命令:python client.py --file /develop/huizhi/73746cc5-3765-48a7-9e0c-f4f7b41492dd.png --file-type 1 --no-visualization

进行服务调用时,服务端报错如下:

Image
  1. 请提供您出现的报错信息及相关log
    Traceback (most recent call last):
    File "/paddlex/py310/lib/python3.10/site-packages/paddlex_hps_server/base_model.py", line 88, in execute
    result_or_output = self.run(input_, log_id)
    File "/paddlex/var/paddlex_model_repo/table-recognition/1/model.py", line 77, in run
    visualize_enabled = input.visualize if input.visualize is not None else self.app_config.visualize
    File "/paddlex/py310/lib/python3.10/site-packages/pydantic/main.py", line 891, in getattr
    raise AttributeError(f'{type(self).name!r} object has no attribute {item!r}')
    AttributeError: 'InferRequest' object has no attribute 'visualize'
    [ INFO] [2025-10-11 07:06:57,009] [6ac57a60e9ef4cd28bacd329740224fb] [02e765c5-624d-45ba-9538-da5a11b796c6] - Time taken: 17.182 ms

环境

paddelx 镜像版本为: ccr-2vdh3abv-pub.cnc.bj.baidubce.com/paddlex/hps:paddlex3.0.0-gpu

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions