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)
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)