当前位置: 首页 > news >正文

飞沐网站建设wordpress remove_query_arg

飞沐网站建设,wordpress remove_query_arg,佛山网站优化服务,网站维护知识determine_dl_model_detection_param “determine_dl_model_detection_param” 直译为 “确定深度学习模型检测参数”。 这个过程会自动针对给定数据集估算模型的某些高级参数#xff0c;强烈建议使用这一过程来优化训练和推断性能。 过程签名 determine_dl_model_detection…determine_dl_model_detection_param “determine_dl_model_detection_param” 直译为 “确定深度学习模型检测参数”。 这个过程会自动针对给定数据集估算模型的某些高级参数强烈建议使用这一过程来优化训练和推断性能。 过程签名 determine_dl_model_detection_param(: : DLDataset, ImageWidthTarget, ImageHeightTarget, GenParam : DLDetectionModelParam)描述 该过程用于分析提供的深度学习数据集DLDataset以进行目标检测以确定与锚点生成相关的模型参数。生成的DLDetectionModelParam是一个包含建议值的字典用于各种目标检测模型的参数。 参数 DLDataset用于目标检测的深度学习数据集的字典。ImageWidthTarget作为模型输入的目标图像宽度经过预处理后的图像宽度。ImageHeightTarget作为模型输入的目标图像高度经过预处理后的图像高度。GenParam包含通用输入参数的字典。DLDetectionModelParam包含建议的模型参数的输出字典。 参数解析 第一个参数DLDataset就是我们读取到的数据集数据集 数据集就是我们标注好的图片数据集 我们可以通过 read_dict() 读取halcon提供的数据集。也可以通过 read_dl_dataset_from_coco 读取通用的coco数据集 图片缩放 第二第三个参数是图片的大小设置。我们知道数据集里是有描述图片原始大小的数据的。这里需要你输入预处理后图片的大小也就是说你可以通过这两个参数对图片进行缩放。一般我们会设置一个较小的大小已加快训练的速度 GenParam GenParam 是一个字典包含一些通用的输入参数可以用来影响 determine_dl_model_detection_param 过程中参数的确定。 使用输入字典GenParam可以进一步影响参数的确定。可以设置不同的键值对来影响锚点生成和模型参数的确定。 你可以根据你的需求在 GenParam 中设置不同的键值对来调整算法的行为。以下是键和对应的值 ‘anchor_num_subscales’: 整数值大于0确定搜索锚点子尺度数量的上限值。默认值为3。 ‘class_ids_no_orientation’: 元组包含表示类别标识的整数值。设置那些应该忽略方向的类别的标识。这些被忽略类别的边界框被视为方向为0的轴对齐边界框。仅适用于检测实例类型为’rectangle2’的情况。 ‘display_histogram’: 确定是否显示数据直方图以进行数据集的视觉分析。可能的值有’true’和’false’默认为’false’。 ‘domain_handling’: 指定图像域的处理方式。可能的值有 full_domain默认图像不被裁剪。crop_domain图像被缩小到其域定义。ignore_direction布尔值或’true’/‘false’确定是否考虑边界框的方向。仅在检测实例类型为’rectangle2’的情况下可用。参考 ‘get_dl_model_param’ 文档以获取有关此参数的更多信息。 ‘max_level’: 整数值大于1确定搜索最大层级的上限值。默认值为6。 ‘max_num_samples’: 整数值大于0或-1确定用于确定参数值的最大样本数。如果设置为-1则选择所有样本。请注意不要将此值设置得太高因为这可能导致内存消耗过大对机器造成高负载。然而如果 ‘max_num_samples’ 设置得太低确定的检测参数可能无法很好地代表数据集。默认值为1500。 ‘min_level’: 整数值大于1确定搜索最小层级的下限值。默认值为2。 ‘preprocessed_path’: 指定预处理目录的路径。预处理目录包含DLDataset的字典.hdict文件以及一个名为’samples’的子目录其中包含预处理的样本例如由过程’preprocess_dl_dataset’生成。对于已经预处理的数据集将忽略输入参数ImageWidthTarget和ImageHeightTarget并可将它们设置为[]。仅当数据集已经为应用程序进行了预处理时此参数才适用。 ‘image_size_constant’: 如果将此参数设置为’true’则假定数据集中的所有图像具有相同的大小以加速处理。图像大小由数据集中的第一个样本确定。此参数仅在数据集尚未预处理且’domain_handling’为’full_domain’时适用。默认值为’true’。 ‘split’: 确定用于分析的数据集拆分。可能的值包括 ‘train’默认、‘validation’、‘test’ 和 ‘all’。如果指定的拆分无效或数据集未创建拆分则使用所有样本。 ‘compute_max_overlap’: 如果将此参数设置为’true’将为数据集确定检测参数 ‘max_overlap’ 和 ‘max_overlap_class_agnostic’。 建议的模型参数 DLDetectionModelParam DLDetectionModelParam是模型的输出参数 输出字典DLDetectionModelParam包括以下参数的建议值 ‘class_ids’类别标识‘class_names’类别名称‘image_width’图像宽度‘image_height’图像高度‘min_level’最小层级‘max_level’最大层级‘instance_type’实例类型‘anchor_num_subscales’锚点子尺度数量‘anchor_aspect_ratios’锚点纵横比‘anchor_angles’锚点角度仅用于’instance_type’为’rectangle2’的模型‘ignore_direction’是否忽略方向仅用于’instance_type’为’rectangle2’的模型‘max_overlap’最大重叠度如果’compute_max_overlap’设置为’true’‘max_overlap_class_agnostic’最大重叠度如果’compute_max_overlap’设置为’true’ 注意事项 文档中提到的返回值是对模型运行时间和检测性能之间的折衷的近似值可能需要进一步的实验来优化参数。此外建议的参数是基于原始数据集而不考虑训练期间可能的数据增强。如果应用了某些数据增强方法如’mirror’、‘rotate’可能需要调整生成的参数以涵盖所有边界框形状。 小结 determine_dl_model_detection_param 会根据输入的数据集得到模型的某些高级参数这些高级参数会用到后续的训练和推理。换句话说训练和推理需要用到一些高级参数。 而这个函数可以根据输入的数据集帮你分析然后得到这些高级参数的值让你用于后续的操作这个函数让我们后续调参有了一定的依据 代码上下文 * * ************************ * ** Set parameters *** * ************************ * * Set obligatory parameters. Backbone : pretrained_dl_classifier_compact.hdl NumClasses : 10 * Image dimensions of the network. Later, these values are * used to rescale the images during preprocessing. ImageWidth : 512 ImageHeight : 320* Read in a DLDataset. * Here, we read the data from a COCO file. * Alternatively, you can read a DLDataset dictionary * as created by e.g., the MVTec Deep Learning Tool using read_dict(). read_dl_dataset_from_coco (PillBagJsonFile, HalconImageDir, dict{read_segmentation_masks: false}, DLDataset) * * Split the dataset into train/validation and test. split_dl_dataset (DLDataset, TrainingPercent, ValidationPercent, []) * * ********************************************** * ** Determine model parameters from data *** * ********************************************** * * Generate model parameters min_level, max_level, anchor_num_subscales, * and anchor_aspect_ratios from the dataset in order to improve the * training result. Please note that optimizing the model parameters too * much on the training data can lead to overfitting. Hence, this should * only be done if the actual application data are similar to the training * data. GenParam : dict{[split]: train} * determine_dl_model_detection_param (DLDataset, ImageWidth, ImageHeight, GenParam, DLDetectionModelParam) * * Get the generated model parameters. MinLevel : DLDetectionModelParam.min_level MaxLevel : DLDetectionModelParam.max_level AnchorNumSubscales : DLDetectionModelParam.anchor_num_subscales AnchorAspectRatios : DLDetectionModelParam.anchor_aspect_ratios * * ******************************************* * ** Create the object detection model *** * ******************************************* * * Create dictionary for generic parameters and create the object detection model. DLModelDetectionParam : dict{} DLModelDetectionParam.image_width : ImageWidth DLModelDetectionParam.image_height : ImageHeight DLModelDetectionParam.image_num_channels : ImageNumChannels DLModelDetectionParam.min_level : MinLevel DLModelDetectionParam.max_level : MaxLevel DLModelDetectionParam.anchor_num_subscales : AnchorNumSubscales DLModelDetectionParam.anchor_aspect_ratios : AnchorAspectRatios DLModelDetectionParam.capacity : Capacity * * Get class IDs from dataset for the model. ClassIDs : DLDataset.class_ids DLModelDetectionParam.class_ids : ClassIDs * Get class names from dataset for the model. ClassNames : DLDataset.class_names DLModelDetectionParam.class_names : ClassNames * * Create the model. create_dl_model_detection (Backbone, NumClasses, DLModelDetectionParam, DLModelHandle) * * Write the initialized DL object detection model * to train it later in part 2. write_dl_model (DLModelHandle, DLModelFileName) * * * ********************************* * ** Preprocess the dataset *** * ********************************* * * Get preprocessing parameters from model. create_dl_preprocess_param_from_model (DLModelHandle, none, full_domain, [], [], [], DLPreprocessParam) * * Preprocess the dataset. This might take a few minutes. GenParam : dict{overwrite_files: auto} preprocess_dl_dataset (DLDataset, DataDirectory, DLPreprocessParam, GenParam, DLDatasetFilename) * * Write preprocessing parameters to use them in later parts. write_dict (DLPreprocessParam, PreprocessParamFileName, [], []) 从这里我们就看到了create_dl_model_detection 创建检测模型的时候就用到了这些参数了后续的训练过程中也会用到我们下一篇见
http://wiki.neutronadmin.com/news/328317/

相关文章:

  • 茶叶怎么做网站销售网站开发需要什么技术
  • 网站建设常用视频格式相城苏州网站建设
  • 物业建设网站客户关系管理理论
  • 网站建设实训心得及收获wordpress 登陆后返回
  • 全球建筑设计网站网站建设宣传图ps
  • 三明北京网站建设北京价格网站建设
  • 电商网站开发的目的和意义百度网站建设中的自由容器
  • 手机 网站 模板医院内外网站建设
  • 临沂网站设计哪家好php网站开发技术 pdf
  • 网站推广方法有几种下载百度语音导航地图安装
  • 网站建设需要啥深圳优化公司公认安高粱seo
  • 太原搭建网站的公司哪家好wap网站生成小程序
  • 二手交易网站建设高校门户网站系统
  • 网站开发建设合同给网站做图
  • wordpress百度推送工具青岛网站seo价格
  • 织梦大气婚纱影楼网站源码saas电商建站系统
  • 在合肥做网站前端月薪大概多少钱网站设计 中国风
  • 可以做思维导图的网站苗木门户网站模板
  • wordpress文章什么时候收录百家港 seo服务
  • 嘉兴有能做网站优化杭州微网站建设公司
  • 网站开发设计知乎网络哪个公司好
  • 重庆哪里有做淘宝网站推广的wordpress 主题安装目录
  • 衡水做网站哪儿好找客户的十大方法
  • 酷黑网站微信建立免费网站
  • 南通网站制作公司哪家好江苏最新消息今天
  • 网站建设 微信小程序虫虫wap建站源码
  • 本溪网站建设兼职网页浏览器的缩写
  • 北京做网站比较好的mega Wordpress
  • 汽车网站网页设计import wordpress
  • 做百度网站每年的费用多少钱南昌网站建设模板合作