duan8/yolo11/include/preprocess.h
mpj1234 4f79443dd2
Add the support of YOLO11' s det/cls/seg/pose in TensorRT8. (#1584)
* Add the support of YOLO11' s det/cls/seg/pose in TensorRT8.

* add train code link
2024-10-11 16:25:07 +08:00

17 lines
486 B
C++

#pragma once
#include <map>
#include <opencv2/opencv.hpp>
#include "NvInfer.h"
#include "types.h"
void cuda_preprocess_init(int max_image_size);
void cuda_preprocess_destroy();
void cuda_preprocess(uint8_t* src, int src_width, int src_height, float* dst, int dst_width, int dst_height,
cudaStream_t stream);
void cuda_batch_preprocess(std::vector<cv::Mat>& img_batch, float* dst, int dst_width, int dst_height,
cudaStream_t stream);