|
| YOLOv5Face (const std::string &model_file, const std::string ¶ms_file="", const RuntimeOption &custom_option=RuntimeOption(), const ModelFormat &model_format=ModelFormat::ONNX) |
| Set path of model file and the configuration of runtime. More...
|
|
std::string | ModelName () const |
| Get model's name.
|
|
virtual bool | Predict (cv::Mat *im, FaceDetectionResult *result, float conf_threshold=0.25, float nms_iou_threshold=0.5) |
| Predict the face detection result for an input image. More...
|
|
virtual bool | Infer (std::vector< FDTensor > &input_tensors, std::vector< FDTensor > *output_tensors) |
| Inference the model by the runtime. This interface is included in the Predict() function, so we don't call Infer() directly in most common situation.
|
|
virtual bool | Infer () |
| Inference the model by the runtime. This interface is using class member reused_input_tensors_ to do inference and writing results to reused_output_tensors_.
|
|
virtual int | NumInputsOfRuntime () |
| Get number of inputs for this model.
|
|
virtual int | NumOutputsOfRuntime () |
| Get number of outputs for this model.
|
|
virtual TensorInfo | InputInfoOfRuntime (int index) |
| Get input information for this model.
|
|
virtual TensorInfo | OutputInfoOfRuntime (int index) |
| Get output information for this model.
|
|
virtual bool | Initialized () const |
| Check if the model is initialized successfully.
|
|
virtual void | EnableRecordTimeOfRuntime () |
| This is a debug interface, used to record the time of runtime (backend + h2d + d2h) More...
|
|
virtual void | DisableRecordTimeOfRuntime () |
| Disable to record the time of runtime, see EnableRecordTimeOfRuntime() for more detail.
|
|
virtual std::map< std::string, float > | PrintStatisInfoOfRuntime () |
| Print the statistic information of runtime in the console, see function EnableRecordTimeOfRuntime() for more detail.
|
|
virtual bool | EnabledRecordTimeOfRuntime () |
| Check if the EnableRecordTimeOfRuntime() method is enabled.
|
|
virtual double | GetProfileTime () |
| Get profile time of Runtime after the profile process is done.
|
|
virtual void | ReleaseReusedBuffer () |
| Release reused input/output buffers.
|
|
|
std::vector< int > | size |
| Argument for image preprocessing step, tuple of (width, height), decide the target size after resize, default size = {640, 640}.
|
|
int | landmarks_per_face |
| Argument for image postprocessing step, setup the number of landmarks for per face (if have), default 5 in official yolov5face note that, the outupt tensor's shape must be: (1,n,4+1+2*landmarks_per_face+1=box+obj+landmarks+cls), default 5.
|
|
std::vector< Backend > | valid_cpu_backends = {Backend::ORT} |
| Model's valid cpu backends. This member defined all the cpu backends have successfully tested for the model.
|
|
std::vector< Backend > | valid_gpu_backends = {Backend::ORT} |
|
std::vector< Backend > | valid_ipu_backends = {} |
|
std::vector< Backend > | valid_timvx_backends = {} |
|
std::vector< Backend > | valid_directml_backends = {} |
|
std::vector< Backend > | valid_ascend_backends = {} |
|
std::vector< Backend > | valid_kunlunxin_backends = {} |
|
std::vector< Backend > | valid_rknpu_backends = {} |
|
std::vector< Backend > | valid_sophgonpu_backends = {} |
|
YOLOv5Face model object used when to load a YOLOv5Face model exported by YOLOv5Face.