get_dl_device_param returns the parameter values GenParamValue of GenParamName for the deep-learning-capable hardware device (hereafter referred to as device) DLDeviceHandle. See query_available_dl_devices for details about deep-learning-capable hardware devices. Supported values for GenParamName ...
get_dl_device_param( : : DLDeviceHandle, GenParamName : GenParamValue) get_dl_device_param() 获取设备参数 set_dl_device_param( : : DLDeviceHandle, GenParamName, GenParamValue : ) set_dl_device_param()设置设备参数 set_dl_model_param( : : DLModelHandle, GenParamName, GenParamValue :...
优化深度学习模型进行推理,`optimize_dl_model_for_inference`函数通过AI2接口完成。建议使用的`DLSamples`样本应具有代表性,通常每个类别提供10-20个样本即可达到良好的结果。获取设备参数使用`get_dl_device_param`函数,反之,`set_dl_device_param`用于设置设备参数。深度学习模型参数的设置与获取,`s...
使用版本:Halcon21.05,内含深度学习模块1.确定阈值计算阈值使用compute_dl_anomaly_thresholds算子,具体解释:get_dl_model_param (DLModelHandle, 'type', ModelType):请求模型对图像施加的要求DLModelHandle含有的参数:get_dict_tuple (DLDataset, 'samples', DLS halcon 释放深度学习模型 深度学习 人工智能 机器学习...
Devices that are supported through the AI2-interface can also be set to a deep learning model using set_dl_model_param. In this case the inference is not executed by HALCON but by the device itself. query_available_dl_devices returns a handle for each deep-learning-capable device supported...
get_framegrabber_param(AcqHandle,'device',CurrentFileName)//设置图像设备对应的文件目录 grab_image(Image,AcqHandle)//读取文件 endwhile close_framegrabber(AcqHandle)//关闭设备 1. 2. 3. 4. 5. 6. open_framegrabber 函数介绍 open_framegrabber( : : Name, HorizontalResolution, VerticalResolution, Image...
结果 If the parameters are valid, the operatorquery_available_dl_devicesreturns the value2(H_MSG_TRUE) . If necessary, an exception is raised. 可能的后置算子 get_dl_device_param 模块 Foundation 算子列表
1、set_dl_model_param(DLModelHandle, 'gpu', GpuId) GpuId=0 选中第一块显卡做深度学习训练。 GpuId=1 选中第二块显卡做深度学习训练。 类推 查询可用多显卡信息 query_available_compute_devices(DeviceIdentifier) //一块显卡输出[0],两块是[0,1],依次类推 ...
1、set_dl_model_param(DLModelHandle, 'gpu', GpuId)GpuId=0 选中第⼀块显卡做深度学习训练。GpuId=1 选中第⼆块显卡做深度学习训练。类推 查询可⽤多显卡信息 query_available_compute_devices(DeviceIdentifier) //⼀块显卡输出[0],两块是[0,1],依次类推 get_compute_device_info(0,’...
#define H_ERR_CNN_INVALID_BATCH_SIZE 7726 /* Device batch size larger than batch size. */ #define H_ERR_CNN_INVALID_PARAM_SPEC 7727 /* Invalid specification of a parameter. */ #define H_ERR_CNN_EXCEEDS_MAX_MEM 7728 /* Memory size exceeds maximal allowed value. */ #define H_ER...