Serving icon indicating copy to clipboard operation
Serving copied to clipboard

使用serving Pipeline 部署 当尺寸为960*1280时报错

Open cutexiaokele opened this issue 2 years ago • 3 comments

InvalidArgumentError: The 3-th dimension of input[0] and input[1] is expected to be equal.But received input[0]'s shape = [1, 160, 40, 32], input[1]'s shape = [1, 160, 40, 31]. [Hint: Expected inputs_dims[0][j] == inputs_dims[i][j], but received inputs_dims[0][j]:32 != inputs_dims[i][j]:31.] (at /paddle/paddle/fluid/operators/concat_op.h:63)

不知道什么问题

cutexiaokele avatar Apr 25 '22 11:04 cutexiaokele

是不死对输入的尺寸有什么要求,不按照640640输入久报错吗,训练的模型时设置的是640640 C++不报错呢

cutexiaokele avatar Apr 26 '22 07:04 cutexiaokele

没人吗? 我直接用Detection的 python tools/infer.py 可以预测 部署到serving 久不可以了

cutexiaokele avatar Apr 28 '22 00:04 cutexiaokele

您好,上面的报错信息是说经过预处理后,input[0]和input[1]的输入信息不符合计算要求。用Detection的 python tools/infer.py 可以预测。说明在前处理部分是有差异的,建议您对比 Detection和 Serving preprocess过程做一下对比,然后调整处理过程。

TeslaZhao avatar Apr 28 '22 06:04 TeslaZhao