23 #include <utils/nms.hpp>
25 #include "models/detection_model.h"
35 static const int LANDMARKS_NUM = 5;
36 static const int INIT_VECTOR_SIZE = 200;
45 float confidenceThreshold,
47 float boxIOUThreshold,
48 const std::string& layout =
"");
49 std::unique_ptr<ResultBase> postprocess(
InferenceResult& infResult)
override;
54 std::vector<int> scales;
56 std::vector<int> ratios;
59 bool shouldDetectMasks;
60 bool shouldDetectLandmarks;
61 const float boxIOUThreshold;
62 const float maskThreshold;
65 enum OutputType { OUT_BOXES, OUT_SCORES, OUT_LANDMARKS, OUT_MASKSCORES, OUT_MAX };
67 std::vector<std::string> separateOutputsNames[OUT_MAX];
68 const std::vector<AnchorCfgLine> anchorCfg;
69 std::map<int, std::vector<Anchor>> anchorsFpn;
70 std::vector<std::vector<Anchor>> anchors;
72 void generateAnchorsFpn();
73 void prepareInputsOutputs(std::shared_ptr<ov::Model>& model)
override;
Definition: detection_model.h:25
Definition: detection_model_retinaface.h:33
ModelRetinaFace(const std::string &model_name, float confidenceThreshold, bool useAutoResize, float boxIOUThreshold, const std::string &layout="")
Definition: detection_model_retinaface.cpp:34
Definition: detection_model_retinaface.h:52