17 #include "fastdeploy/fastdeploy_model.h" 18 #include "fastdeploy/vision/common/processors/transform.h" 19 #include "fastdeploy/vision/common/result.h" 37 YOLOv6(
const std::string& model_file,
const std::string& params_file =
"",
53 float conf_threshold = 0.25,
54 float nms_iou_threshold = 0.5);
57 void UseCudaPreprocessing(
int max_img_size = 3840 * 2160);
65 std::vector<float> padding_value;
84 std::map<std::string, std::array<float, 2>>* im_info);
87 std::map<std::string, std::array<float, 2>>* im_info);
90 const std::map<std::string, std::array<float, 2>>& im_info,
91 float conf_threshold,
float nms_iou_threshold);
93 bool IsDynamicInput()
const {
return is_dynamic_input_; }
95 void LetterBox(
Mat* mat, std::vector<int> size, std::vector<float> color,
96 bool _auto,
bool scale_fill =
false,
bool scale_up =
true,
106 bool is_dynamic_input_;
108 uint8_t* input_img_cuda_buffer_host_ =
nullptr;
110 uint8_t* input_img_cuda_buffer_device_ =
nullptr;
112 float* input_tensor_cuda_buffer_device_ =
nullptr;
114 bool use_cuda_preprocessing_ =
false;
116 void* cuda_stream_ =
nullptr;
Option object used when create a new Runtime object.
Definition: runtime_option.h:40
std::vector< int > size
Argument for image preprocessing step, tuple of (width, height), decide the target size after resize...
Definition: yolov6.h:62
Base model object for all the vision models.
Definition: fastdeploy_model.h:21
ModelFormat
Definition: enum_variables.h:67
FDTensor object used to represend data matrix.
Definition: fd_tensor.h:31
YOLOv6 model object used when to load a YOLOv6 model exported by YOLOv6.
Definition: yolov6.h:28
Detection result structure for all the object detection models and instance segmentation models...
Definition: result.h:106
std::string ModelName() const
Get model's name.
Definition: yolov6.h:43
FDMat is a structure for replace cv::Mat.
Definition: mat.h:34
Model with ONNX format.
Definition: enum_variables.h:70
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16