简体   繁体   English

无法训练Tensor对象检测API模型

[英]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.

相关问题 tensorflow对象检测API错误训练 - tensorflow object detection API error to train 无法使用 TensorFlow Object 检测 API 以更大的输入分辨率训练 SSD Inception-V2 - Can't Train SSD Inception-V2 with Larger Input Resolution with TensorFlow Object Detection API Tensorflow对象检测-自己的类推理图训练/导出错误(张量形状) - Tensorflow object detection - own classes inference graph train/export error (tensor shape) 如何在TensorFlow对象检测API中从头开始训练? - How to train from scratch in TensorFlow object detection API? tensorflow对象检测API train.py自错误 - tensorflow object detection API train.py self error Tensorflow对象检测API没有train.py文件 - Tensorflow Object Detection API no train.py file TensorFlow对象检测API-源代码中Tensor的维数不正确? - TensorFlow Object Detection API - Incorrect Dimensionality of Tensor in Source Code? Tensorflow 2 Object 检测 API - 官方模型:无法更改 params_override 参数中的其他参数 - Tensorflow 2 Object Detection API - Official Models: Can't change other parameters in params_override argument 如何在 Tensorflow 对象检测 API 中使用两个模型 - How to use two models in Tensorflow object Detection API 模块 'tensorflow_core._api.v2.train' 没有属性 'GradientDescentOptimizer' 和 'Tensor' object 在 Tensorflow 2.0 上的 Z23EEEB4347BDD256BFC6B7EE9 中不可调用 - module 'tensorflow_core._api.v2.train' has no attribute 'GradientDescentOptimizer' and 'Tensor' object is not callable in Tensorflow 2.0 on python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM