【问题标题】:Couldn't Train Tensor Object Detection API Models无法训练张量对象检测 API 模型
【发布时间】:2018-03-20 14:03:00
【问题描述】:

我正在使用 tensorflow 的对象检测 API。我成功地使用 'ssd_mobilenet_v1_coco_2017_11_17' 模型进行了训练,后来我从给定模型转移到另一个模型,但是在训练过程开始时它显示错误: “TypeError:预期为 int32,取而代之的是 'range' 类型的范围 ”。 除 ssd_mobilenet_v1_coco_2017_11_17 以外的所有其他模型都会引发此错误。

我使用 300*300 大小的图像来训练所有模型。 在这里,我附上了显示错误消息的命令提示符窗口的图像。我使用的 tensorflow 版本是 1.5 和 python 3.6。

【问题讨论】:

    标签: python tensorflow deep-learning training-data object-detection-api


    【解决方案1】:

    请修改 第 154 行:tf.constant(范围(num_boundaries),dtype=tf.int32), to tf.constant(list(range(num_boundaries)), dtype=tf.int32)

    供进一步参考: https://github.com/tensorflow/models/issues/3443

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-07-11
      • 2019-04-05
      • 1970-01-01
      • 1970-01-01
      • 2018-06-11
      • 1970-01-01
      • 1970-01-01
      • 2019-03-12
      相关资源
      最近更新 更多