Tensorflow object detection API 使用VOC数据集出现错误。

环境:Win7+Anaconda+Python3.6+tensorflow 1.12.0

在进行目标检测时,运行train.py,跳转到array____ops.py在903行出错,

            if ops.is_dense_tensor_like(elem):
                if dtype is not None and elem.dtype.base_dtype != dtype:
                    raise TypeError("Cannot convert a list containing a tensor of dtype "
                                    "%s to %s (Tensor is: %r)" % (elem.dtype, dtype, elem))
                converted_elems.append(elem)
                must_pack = True
            elif isinstance(elem, (list, tuple)):
                converted_elem = _autopacking_helper(elem, dtype, str(i))
                if ops.is_dense_tensor_like(converted_elem):
                    must_pack = True
                converted_elems.append(converted_elem)
            else:
                converted_elems.append(elem)

错误显示为:
TypeError: Cannot convert a list containing a tensor of dtype to (Tensor is: )

有没有遇到相同问题的,怎么解决啊,找了好多,都没有遇到靠谱的。

假定程序本身是对的,那么你需要检查你的输入的数据是否正确,还有你的tensorflow的版本和你的程序作者用的版本是否兼容。
tf有很多版本彼此兼容性都不好,所以你要找和作者一致或者接近的版本跑你的程序