16 #include "fastdeploy/vision/faceid/contrib/insightface/base.h" 21 class FASTDEPLOY_DECL ArcFace :
public InsightFaceRecognitionBase {
30 ArcFace(
const std::string& model_file,
const std::string& params_file =
"",
31 const RuntimeOption& custom_option = RuntimeOption(),
33 : InsightFaceRecognitionBase(model_file, params_file, custom_option,
36 valid_cpu_backends = {Backend::ORT};
43 valid_kunlunxin_backends = {Backend::LITE};
45 initialized = Initialize();
48 virtual std::string ModelName()
const {
return "ArcFace"; }
51 class FASTDEPLOY_DECL CosFace :
public InsightFaceRecognitionBase {
60 CosFace(
const std::string& model_file,
const std::string& params_file =
"",
61 const RuntimeOption& custom_option = RuntimeOption(),
63 : InsightFaceRecognitionBase(model_file, params_file, custom_option,
66 valid_cpu_backends = {Backend::ORT};
73 valid_kunlunxin_backends = {Backend::LITE};
75 initialized = Initialize();
78 virtual std::string ModelName()
const {
return "CosFace"; }
80 class FASTDEPLOY_DECL PartialFC :
public InsightFaceRecognitionBase {
89 PartialFC(
const std::string& model_file,
const std::string& params_file =
"",
90 const RuntimeOption& custom_option = RuntimeOption(),
92 : InsightFaceRecognitionBase(model_file, params_file, custom_option,
95 valid_cpu_backends = {Backend::ORT};
102 valid_kunlunxin_backends = {Backend::LITE};
104 initialized = Initialize();
107 virtual std::string ModelName()
const {
return "PartialFC"; }
109 class FASTDEPLOY_DECL VPL :
public InsightFaceRecognitionBase {
118 VPL(
const std::string& model_file,
const std::string& params_file =
"",
119 const RuntimeOption& custom_option = RuntimeOption(),
121 : InsightFaceRecognitionBase(model_file, params_file, custom_option,
124 valid_cpu_backends = {Backend::ORT};
131 valid_kunlunxin_backends = {Backend::LITE};
133 initialized = Initialize();
136 virtual std::string ModelName()
const {
return "VPL"; }
Paddle Inference, support Paddle format model, CPU / Nvidia GPU.
Definition: enum_variables.h:35
ModelFormat
Definition: enum_variables.h:67
TensorRT, support Paddle/ONNX format model, Nvidia GPU only.
Definition: enum_variables.h:34
RKNPU2, support RKNN format model, Rockchip NPU only.
Definition: enum_variables.h:39
Model with RKNN format.
Definition: enum_variables.h:71
Paddle Lite, support Paddle format model, ARM CPU only.
Definition: enum_variables.h:38
Model with ONNX format.
Definition: enum_variables.h:70
All C++ FastDeploy APIs are defined inside this namespace.
Definition: option.h:16