[英]Couldn't Train Tensor Object Detection API Models
I am using tensorflow's object detection API. 我正在使用tensorflow的对象检测API。 I successfully trained with 'ssd_mobilenet_v1_coco_2017_11_17' model, later I moved to another model from the given models but while training process starts it showing the error: "TypeError: Expected int32, got range <0,3> of type 'range' instead".
我成功地使用'ssd_mobilenet_v1_coco_2017_11_17'模型进行了训练,后来我从给定的模型移至另一个模型,但是在训练过程中开始显示错误:“ TypeError:Expected int32,得到的范围<0,3>的类型为range”。 This error was thrown for all other models other than the ssd_mobilenet_v1_coco_2017_11_17.
除ssd_mobilenet_v1_coco_2017_11_17之外的所有其他型号均抛出此错误。
I used 300*300 size images for training for all the models. 我将300 * 300尺寸的图像用于所有模型的训练。 Here I attached images of the command prompt window showing the error message.I use tensorflow version is 1.5 and python 3.6.
在这里,我附上了显示错误消息的命令提示符窗口的图像。我使用tensorflow版本是1.5和python 3.6。
Please modify line 154 : tf.constant(range(num_boundaries), dtype=tf.int32), to tf.constant(list(range(num_boundaries)), dtype=tf.int32) 请修改第154行:tf.constant(range(num_boundaries),dtype = tf.int32),更改为tf.constant(list(range(num_boundaries)),dtype = tf.int32)
For further reference : https://github.com/tensorflow/models/issues/3443 进一步参考: https : //github.com/tensorflow/models/issues/3443
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.