Fix bug : when the width and height are different, the result is incorrect (#235)

This commit is contained in:
BaofengZan 2020-10-09 17:35:13 +08:00 committed by wang-xinyu
parent d3930c155c
commit 55e604e6f7

View File

@ -230,7 +230,7 @@ namespace nvinfer1
//printf("Net: %d %d \n", mYoloV5NetWidth, mYoloV5NetHeight);
CalDetection << < (yolo.width*yolo.height*batchSize + mThreadCount - 1) / mThreadCount, mThreadCount >> >
(inputs[i], output, numElem, mYoloV5NetWidth, mYoloV5NetWidth, mMaxOutObject, yolo.width, yolo.height, (float *)mAnchor[i], mClassCount, outputElem);
(inputs[i], output, numElem, mYoloV5NetWidth, mYoloV5NetHeight, mMaxOutObject, yolo.width, yolo.height, (float *)mAnchor[i], mClassCount, outputElem);
}
}