hpc203 / yolov5-dnn-cpp-python-v2

用opencv的dnn模块做yolov5目标检测,包含C++和Python两个版本的程序,优化后的
114 stars 30 forks source link

Error with custom model yolov5m #7

Open xellDart opened 3 years ago

xellDart commented 3 years ago

I train my model with your changes, y test this using onnx runtime and all is ok , but in OpenCV I get this error: outs[row_ind:row_ind+length, 0:2] = (outs[row_ind:row_ind+length, 0:2] 2. - 0.5 + np.tile(self.grid[i],(self.na, 1))) int(self.stride[i]) ValueError: operands could not be broadcast together with shapes (1,2,8) (19200,2)

Lucas-Lxb commented 3 months ago

Have you solved it? I have the same problem

wangbdbisbbc commented 3 months ago

Have you solved it? I have the same problem

hi,have you solve the problem now?