16 #include "fastdeploy/vision/common/processors/transform.h" 17 #include "fastdeploy/vision/common/result.h" 38 bool Run(
const std::vector<FDTensor>& tensors,
39 std::vector<DetectionResult>* results,
40 const std::vector<std::map<std::string, std::array<float, 2>>>& ims_info);
44 conf_threshold_ = conf_threshold;
52 nms_threshold_ = nms_threshold;
60 multi_label_ = multi_label;
67 float conf_threshold_;
74 float mask_threshold_;
float GetConfThreshold() const
Get conf_threshold, default 0.25.
Definition: postprocessor.h:48
void SetMultiLabel(bool multi_label)
Set multi_label, set true for eval, default true.
Definition: postprocessor.h:59
void SetNMSThreshold(const float &nms_threshold)
Set nms_threshold, default 0.5.
Definition: postprocessor.h:51
bool GetMultiLabel() const
Get multi_label, default true.
Definition: postprocessor.h:64
void SetConfThreshold(const float &conf_threshold)
Set conf_threshold, default 0.25.
Definition: postprocessor.h:43
float GetNMSThreshold() const
Get nms_threshold, default 0.5.
Definition: postprocessor.h:56
Postprocessor object for YOLOv5Seg serials model.
Definition: postprocessor.h:25
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16