首页 Paddle Serving 帖子详情
PP-ShiTu 部署,检测失败,能有人帮忙解答下吗
收藏
快速回复
Paddle Serving Serving问答 442 3
PP-ShiTu 部署,检测失败,能有人帮忙解答下吗
收藏
快速回复
Paddle Serving Serving问答 442 3

按照文档进行 pp-shitu的Serving部署,运行python3 recognition_web_service.py &>log.txt & 命令,看启动日志是正常的,但是运行 python3 pipeline_http_client.py 后提示错误,

InvalidArgumentError: Broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [2500, 4] and the shap e of Y = [2]. Received [4] in X is not equal to [2] in Y at i:1.
[Hint: Expected x_dims_array[i] == y_dims_array[i] || x_dims_array[i] <= 1 || y_dims_array[i] <= 1 == true, but received x_dims_array[i ] == y_dims_array[i] || x_dims_array[i] <= 1 || y_dims_array[i] <= 1:0 != true:1.] (at /paddle/paddle/fluid/operators/elementwise/elementwise _op_function.h:240)

0
收藏
回复
全部评论(3)
时间顺序
FutureSI
#2 回复于2021-12

inference 模型能正常运行么?

0
回复
k
ke2008start
#4 回复于2021-12
inference 模型能正常运行么?

可以,执行 python python/predict_system.py -c configs/inference_general.yaml -o Global.use_gpu=False  可以正常结果

0
回复
FutureSI
#5 回复于2021-12

这个报的数据维度错误,会不会和输入的预处理有关,不行在套件代码里分别打印下查看下

0
回复
需求/bug反馈?一键提issue告诉我们
发现bug?如果您知道修复办法,欢迎提pr直接参与建设飞桨~
在@后输入用户全名并按空格结束,可艾特全站任一用户