无法训练张量对象检测 API 个模型

Couldn't Train Tensor Object Detection API Models

我正在使用tensorflow的对象检测API。我用 'ssd_mobilenet_v1_coco_2017_11_17' 模型成功训练,后来我从给定模型转移到另一个模型,但在训练过程开始时它显示错误: "TypeError: Expected int32, got range <0,3> of type 'range' instead"。 除了 ssd_mobilenet_v1_coco_2017_11_17.

之外的所有其他模型都会引发此错误

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

请修改 第 154 行:tf.constant(范围(num_boundaries), dtype=tf.int32), 到 tf.constant(列表(范围(num_boundaries)), dtype=tf.int32)

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