yolov5-v6.1-opencv-onnxrun
yolov5-v6.1-opencv-onnxrun copied to clipboard
yolov5v5推理结果解析问题请教
我看结果都是取到数据后,直接取前四个就是cx cy w h:
但是我看您的代码里面确是:
float cx = (pdata[0] * 2.f - 0.5f + j) * stride; ///cx
float cy = (pdata[1] * 2.f - 0.5f + i) * stride; ///cy
float w = powf(pdata[2] * 2.f, 2.f) * anchor_w; ///w
float h = powf(pdata[3] * 2.f, 2.f) * anchor_h; ///h
不知道怎么理解?
Check the box position decoding code in the forward method, the detector predicts boxes on neighbouring grid as well