PaddleDetection icon indicating copy to clipboard operation
PaddleDetection copied to clipboard

rtdetr 推理调大尺寸报错,原始640改为960 报错

Open AI-cv-llg opened this issue 1 year ago • 1 comments

问题确认 Search before asking

  • [X] 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

rtdetr 推理调大尺寸报错,原始640改为960报错如下我改了960*960, anaconda3/envs/paddle_cp_steel_3.8/lib/python3.8/site-packages/paddle/fluid/dygraph/math_op_patch.py", line 304, in impl return math_op(self, other_var, -1) ValueError: (InvalidArgument) Broadcast dimension mismatch. Operands could not be broadcast together with the shape of X = [4, 900, 384] and the shape of Y = [1, 400, 384]. Received [900] in X is not equal to [400] 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/phi/kernels/funcs/common_shape.h:84)

AI-cv-llg avatar Aug 03 '23 10:08 AI-cv-llg

@AI-cv-llg

https://github.com/lyuwenyu/RT-DETR/issues/13

lyuwenyu avatar Aug 15 '23 07:08 lyuwenyu