create_deep_counting_modelT_create_deep_counting_modelCreateDeepCountingModelCreateDeepCountingModelcreate_deep_counting_model创建深度计数模型(算子)
名称
create_deep_counting_modelT_create_deep_counting_modelCreateDeepCountingModelCreateDeepCountingModelcreate_deep_counting_model — 创建用于计数对象的深度计数模型。
签名
void CreateDeepCountingModel(const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* DeepCountingHandle)
void HDlModelCounting::HDlModelCounting(const HTuple& GenParamName, const HTuple& GenParamValue)
void HDlModelCounting::HDlModelCounting(const HString& GenParamName, double GenParamValue)
void HDlModelCounting::HDlModelCounting(const char* GenParamName, double GenParamValue)
void HDlModelCounting::HDlModelCounting(const wchar_t* GenParamName, double GenParamValue)
(
Windows only)
void HDlModelCounting::CreateDeepCountingModel(const HTuple& GenParamName, const HTuple& GenParamValue)
void HDlModelCounting::CreateDeepCountingModel(const HString& GenParamName, double GenParamValue)
void HDlModelCounting::CreateDeepCountingModel(const char* GenParamName, double GenParamValue)
void HDlModelCounting::CreateDeepCountingModel(const wchar_t* GenParamName, double GenParamValue)
(
Windows only)
描述
create_deep_counting_modelcreate_deep_counting_modelCreateDeepCountingModelCreateDeepCountingModelCreateDeepCountingModelcreate_deep_counting_model 创建一个深度计数模型,并将模型句柄存储在 DeepCountingHandleDeepCountingHandleDeepCountingHandleDeepCountingHandledeepCountingHandledeep_counting_handle 中。
在内部,create_deep_counting_modelcreate_deep_counting_modelCreateDeepCountingModelCreateDeepCountingModelCreateDeepCountingModelcreate_deep_counting_model 基于预训练网络 'pretrained_dl_classifier_resnet50.hdl'"pretrained_dl_classifier_resnet50.hdl""pretrained_dl_classifier_resnet50.hdl""pretrained_dl_classifier_resnet50.hdl""pretrained_dl_classifier_resnet50.hdl""pretrained_dl_classifier_resnet50.hdl" 构建骨干网络,该文件必须可用。有关文件搜索路径的详细信息,请参阅 read_dl_modelread_dl_modelReadDlModelReadDlModelReadDlModelread_dl_model。
深度计数模型的附加参数可通过泛型参数 GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name 和 GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value 进行设置。参数列表及其取值范围请参阅 get_deep_counting_model_paramget_deep_counting_model_paramGetDeepCountingModelParamGetDeepCountingModelParamGetDeepCountingModelParamget_deep_counting_model_param。这些参数既可在模型创建时设置,也可通过 set_deep_counting_model_paramset_deep_counting_model_paramSetDeepCountingModelParamSetDeepCountingModelParamSetDeepCountingModelParamset_deep_counting_model_param 后续配置。
请注意,在使用
apply_deep_counting_modelapply_deep_counting_modelApplyDeepCountingModelApplyDeepCountingModelApplyDeepCountingModelapply_deep_counting_model 应用返回的深度计数模型之前,必须通过 prepare_deep_counting_modelprepare_deep_counting_modelPrepareDeepCountingModelPrepareDeepCountingModelPrepareDeepCountingModelprepare_deep_counting_model 将模板存储到模型中。
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
此算子返回一个句柄。请注意,即使该句柄被用作特定算子的输入参数,这些算子仍可能改变此句柄类型的实例状态。
参数
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (输入控制) attribute.name(-array) → HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)
参数名称。
默认值:
[]
值列表:
'angle_end'"angle_end""angle_end""angle_end""angle_end""angle_end", 'angle_start'"angle_start""angle_start""angle_start""angle_start""angle_start", 'angle_step'"angle_step""angle_step""angle_step""angle_step""angle_step", 'device'"device""device""device""device""device", 'max_overlap'"max_overlap""max_overlap""max_overlap""max_overlap""max_overlap", 'min_score'"min_score""min_score""min_score""min_score""min_score", 'scale_max'"scale_max""scale_max""scale_max""scale_max""scale_max", 'scale_min'"scale_min""scale_min""scale_min""scale_min""scale_min", 'scale_step'"scale_step""scale_step""scale_step""scale_step""scale_step"
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (输入控制) attribute.value(-array) → HTupleMaybeSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
参数值。
默认值:
[]
DeepCountingHandleDeepCountingHandleDeepCountingHandleDeepCountingHandledeepCountingHandledeep_counting_handle (输出控制) deep_counting → HDlModelCounting, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
深度计数模型用于对象计数。
结果
如果参数有效,算子 create_deep_counting_modelcreate_deep_counting_modelCreateDeepCountingModelCreateDeepCountingModelCreateDeepCountingModelcreate_deep_counting_model 返回值 2 (H_MSG_TRUE)。如有必要,则抛出异常。
可能的后继
set_deep_counting_model_paramset_deep_counting_model_paramSetDeepCountingModelParamSetDeepCountingModelParamSetDeepCountingModelParamset_deep_counting_model_param,
get_deep_counting_model_paramget_deep_counting_model_paramGetDeepCountingModelParamGetDeepCountingModelParamGetDeepCountingModelParamget_deep_counting_model_param,
prepare_deep_counting_modelprepare_deep_counting_modelPrepareDeepCountingModelPrepareDeepCountingModelPrepareDeepCountingModelprepare_deep_counting_model,
apply_deep_counting_modelapply_deep_counting_modelApplyDeepCountingModelApplyDeepCountingModelApplyDeepCountingModelapply_deep_counting_model
替代
read_deep_counting_modelread_deep_counting_modelReadDeepCountingModelReadDeepCountingModelReadDeepCountingModelread_deep_counting_model
另见
get_deep_counting_model_paramget_deep_counting_model_paramGetDeepCountingModelParamGetDeepCountingModelParamGetDeepCountingModelParamget_deep_counting_model_param
模块
匹配