Use CPU resize before upload to GPU to remove PCIe bottleneck
This commit is contained in:
@@ -173,6 +173,8 @@ public:
|
||||
// to the original reference frame.
|
||||
static cv::cuda::GpuMat resizeKeepAspectRatioPadRightBottom(const cv::cuda::GpuMat &input, size_t height, size_t width,
|
||||
const cv::Scalar &bgcolor = cv::Scalar(0, 0, 0));
|
||||
static cv::Mat cpuResizeKeepAspectRatioPadRightBottom(const cv::Mat &input, size_t height, size_t width,
|
||||
const cv::Scalar &bgcolor = cv::Scalar(114, 114, 114));
|
||||
|
||||
[[nodiscard]] const std::vector<nvinfer1::Dims3> &getInputDims() const override { return m_inputDims; };
|
||||
[[nodiscard]] const std::vector<nvinfer1::Dims> &getOutputDims() const override { return m_outputDims; };
|
||||
|
||||
Reference in New Issue
Block a user