|
SSCMA-Micro CPP SDK
v2.0.0
SSCMA-Micro is a cross-platform machine learning inference framework designed for embedded devices.
|
#include <ma_model_base.h>
Public Member Functions | |
| Model (Engine *engine, const char *name, uint16_t type) | |
| virtual | ~Model () |
| const ma_perf_t | getPerf () const |
| const char * | getName () const |
| ma_model_type_t | getType () const |
| ma_input_type_t | getInputType () const |
| ma_output_type_t | getOutputType () const |
| virtual const void * | getInput ()=0 |
| virtual ma_err_t | setConfig (ma_model_cfg_opt_t opt,...)=0 |
| virtual ma_err_t | getConfig (ma_model_cfg_opt_t opt,...)=0 |
| void | setPreprocessDone (std::function< void(void *)> func) |
| void | setPostprocessDone (std::function< void(void *)> func) |
| void | setRunDone (std::function< void(void *)> func) |
| void | setUserCtx (void *ctx) |
Protected Member Functions | |
| virtual ma_err_t | preprocess ()=0 |
| virtual ma_err_t | postprocess ()=0 |
| ma_err_t | underlyingRun () |
Protected Attributes | |
| Engine * | p_engine_ |
| const char * | p_name_ |
| ma::Model::Model | ( | Engine * | engine, |
| const char * | name, | ||
| uint16_t | type | ||
| ) |
|
virtual |
|
pure virtual |
Implemented in ma::model::Segmentor, ma::model::PoseDetector, ma::model::PointDetector, ma::model::Detector, and ma::model::Classifier.
|
pure virtual |
Implemented in ma::model::Segmentor, ma::model::PoseDetector, ma::model::PointDetector, ma::model::Detector, and ma::model::Classifier.
| ma_input_type_t ma::Model::getInputType | ( | ) | const |
| const char * ma::Model::getName | ( | ) | const |
| ma_output_type_t ma::Model::getOutputType | ( | ) | const |
| const ma_perf_t ma::Model::getPerf | ( | ) | const |
| ma_model_type_t ma::Model::getType | ( | ) | const |
|
protectedpure virtual |
Implemented in ma::model::YoloV8Pose, ma::model::YoloV8, ma::model::YoloV5, ma::model::YoloWorld, ma::model::Yolo11Seg, ma::model::Yolo11Pose, ma::model::Yolo11, ma::model::RTMDet, ma::model::PFLD, ma::model::NvidiaDet, ma::model::FOMO, and ma::model::Classifier.
|
protectedpure virtual |
Implemented in ma::model::Segmentor, ma::model::PoseDetector, ma::model::PointDetector, ma::model::Detector, and ma::model::Classifier.
|
pure virtual |
Implemented in ma::model::Segmentor, ma::model::PoseDetector, ma::model::PointDetector, ma::model::Detector, and ma::model::Classifier.
| void ma::Model::setPostprocessDone | ( | std::function< void(void *)> | func | ) |
| void ma::Model::setPreprocessDone | ( | std::function< void(void *)> | func | ) |
| void ma::Model::setRunDone | ( | std::function< void(void *)> | func | ) |
| void ma::Model::setUserCtx | ( | void * | ctx | ) |
|
protected |
|
protected |
|
protected |