17 #include "fastdeploy/fastdeploy_model.h" 18 #include "fastdeploy/vision/common/processors/transform.h" 19 #include "fastdeploy/vision/common/result.h" 37 YOLOX(
const std::string& model_file,
const std::string& params_file =
"",
51 float conf_threshold = 0.25,
52 float nms_iou_threshold = 0.5);
59 std::vector<float> padding_value;
69 std::vector<int> downsample_strides;
77 std::map<std::string, std::array<float, 2>>* im_info);
80 const std::map<std::string, std::array<float, 2>>& im_info,
81 float conf_threshold,
float nms_iou_threshold);
83 bool PostprocessWithDecode(
85 const std::map<std::string, std::array<float, 2>>& im_info,
86 float conf_threshold,
float nms_iou_threshold);
88 bool IsDynamicInput()
const {
return is_dynamic_input_; }
97 bool is_dynamic_input_;
Option object used when create a new Runtime object.
Definition: runtime_option.h:40
Base model object for all the vision models.
Definition: fastdeploy_model.h:21
bool is_decode_exported
whether the model_file was exported with decode module. The official YOLOX/tools/export_onnx.py script will export ONNX file without decode module. Please set it 'true' manually if the model file was exported with decode module. default false.
Definition: yolox.h:66
ModelFormat
Definition: enum_variables.h:67
FDTensor object used to represend data matrix.
Definition: fd_tensor.h:31
Detection result structure for all the object detection models and instance segmentation models...
Definition: result.h:106
YOLOX model object used when to load a YOLOX model exported by YOLOX.
Definition: yolox.h:28
FDMat is a structure for replace cv::Mat.
Definition: mat.h:34
std::string ModelName() const
Get model's name.
Definition: yolox.h:41
Model with ONNX format.
Definition: enum_variables.h:70
std::vector< int > size
Argument for image preprocessing step, tuple of (width, height), decide the target size after resize...
Definition: yolox.h:57
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16