Configuring the Object Detection Training Pipeline

Configuring the Object Detection Training Pipeline

前言

TensorFlow官方文档:Configuring the Object Detection Training Pipeline

配置文件的骨架

# The model configuration. This defines what type of model will be trained (ie. meta-architecture, feature extractor).
model {
(... Add model config here...)
}

# The train_config, which decides what parameters should be used to train model parameters (ie. SGD parameters, input preprocessing and feature extractor initialization values).
train_config : {
(... Add train_config here...)
}

# The train_input_config, which defines what dataset the model should be trained on.
train_input_reader: {
(... Add train_input configuration here...)
}

# The eval_config, which determines what set of metrics will be reported for evaluation.
eval_config: {
}

# The eval_input_config, which defines what dataset the model will be evaluated on. Typically this should be different than the training input dataset.
eval_input_reader: {
(... Add eval_input configuration here...)
}

请注意,路径也可以指向谷歌云存储桶(例如。“gs://project_bucket/train.record”)用于谷歌云。

配置train_config

train_config定义了培训过程的各个部分:

  1. 模型参数初始化。
  2. 输入预处理。
  3. SGD参数。

输入预处理
可以使用train_config中的data_augmentation_options指定训练数据的增强。这个字段是可选的。

SGD参数
train_config中的剩余参数是梯度下降的超参数。请注意,在这些配置文件中提供的最佳学习率可能取决于训练设置的具体情况(例如workers的数量,gpu的类型)。

配置eval_config

eval_config主要配置两个参数num_examplesmetrics_set
num_examples参数表示一个评估周期使用的批数(当前batch size为1),通常是评估数据集的总大小。
metrics_set参数表示在评估期间运行哪些指标(如:coco_detection_metrics)

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

ayiya_Oese

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值