SSCMA-Micro CPP SDK  v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
ma_model_nvidia_det.h
Go to the documentation of this file.
1 #ifndef _MA_MODEL_NVIDIA_DET_
2 #define _MA_MODEL_NVIDIA_DET_
3 
4 #include <vector>
5 
6 #include "ma_model_detector.h"
7 
8 namespace ma::model {
9 
10 class NvidiaDet : public Detector {
11  private:
12  ma_shape_t conf_shape_;
13  ma_shape_t bboxes_shape_;
14 
15  int8_t stride_ = 16;
16  int8_t scale_ = 35;
17  float offset_ = 0.5;
18 
19  protected:
20  ma_err_t postprocess() override;
21 
23 
24  public:
25  NvidiaDet(Engine* engine);
26  ~NvidiaDet();
27 
28  static bool isValid(Engine* engine);
29 
30  static const char* getTag();
31 };
32 
33 } // namespace ma::model
34 
35 #endif
Definition: ma_engine_base.h:17
Definition: ma_model_detector.h:12
Definition: ma_model_nvidia_det.h:10
static const char * getTag()
Definition: ma_model_nvidia_det.cpp:68
NvidiaDet(Engine *engine)
Definition: ma_model_nvidia_det.cpp:11
static bool isValid(Engine *engine)
Definition: ma_model_nvidia_det.cpp:18
~NvidiaDet()
Definition: ma_model_nvidia_det.cpp:16
ma_err_t postProcessF32()
Definition: ma_model_nvidia_det.cpp:97
ma_err_t postprocess() override
Definition: ma_model_nvidia_det.cpp:72
ma_err_t
Definition: ma_types.h:21
Definition: ma_model_classifier.cpp:5
Definition: ma_types.h:49