PP-ShiTu 部署,检测失败,能有人帮忙解答下吗
收藏
按照文档进行 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
收藏
请登录后评论
inference 模型能正常运行么?
可以,执行 python python/predict_system.py -c configs/inference_general.yaml -o Global.use_gpu=False 可以正常结果
这个报的数据维度错误,会不会和输入的预处理有关,不行在套件代码里分别打印下查看下