python 目标检测 训练_tensorflow目标检测API之训练自己的数据集

1.训练文件的配置

将生成的csv和record文件都放在新建的mydata文件夹下,并打开object_detection文件夹下的data文件夹,复制一个后缀为.pbtxt的文件到mtdata文件夹下,并重命名为gaoyue.pbtxt

用记事本打开该文件,因为我只分了一类,所以将其他内容删除,只剩下这一个类别,并将name改为gaoyue。

9600b58eb0827d7e58fb9ae314a555d0.png

这时我们拥有的所有文件如下图所示。

da264597448cce10be7f6e4bc326b557.png

我们在object_detection文件夹下新建一个training文件夹,在里面新建一个记事本文件并命名为 ssd_mobilenet_v1_coco.config

打开,输入以下代码,按右边注释进行修改

#SSD with Mobilenet v1 configuration for MSCOCO Dataset.#Users should configure the fine_tune_checkpoint field in the train config as#well as the label_map_path and input_path fields in the train_input_reader and#eval_input_reader. Search for "PATH_TO_BE_CONFIGURED" to find the fields that#should be configured.

model {

ssd {

num_classes:1 #你类别的数量,我这里只分了一类

box_coder {

faster_rcnn_box_coder {

y_scale:10.0x_scale:10.0height_scale:5.0width_scale:5.0}

}

matcher {

argmax_matcher {

matched_threshold:0.5unmatched_threshold:0.5ignore_thresholds: false

negatives_lower_than_unmatched: true

force_match_for_each_row: true

}

}

similarity_calculator {

iou_similarity {

}

}<

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值