您的位置:首页 > 移动开发 > Objective-C

tensorflow object detection api 更新

2018-03-29 21:09 716 查看
1.下载的新models文件到tensorflow目录下,但一定要删除之前的models文件,否则会造成同名文件的调用出错

2.修改config文件

注释下面这段代码

#       schedule {
#         step: 0
#         learning_rate: .0003
#       }


添加

max_number_of_boxes: 50


3.修改 \utils\learning_schedules.py 中167~~169行:

rate_index = tf.reduce_max(tf.where(tf.greater_equal(global_step, boundaries),
range(num_boundaries),
[0] * num_boundaries))


改为

rate_index = tf.reduce_max(tf.where(tf.greater_equal(global_step, boundaries),
list(range(num_boundaries)),
[0] * num_boundaries))
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: