我仍然试图用自己的图像数据运行Tensorflow.我能够使用此示例链接中的conevert_to()函数创建.tfrecords文件
现在,我想用该示例链接中的代码训练网络.
但它在read_and_decode()函数中失败了.我对该功能的更改是:
label = tf.decode_raw(features['label'], tf.string)
Run Code Online (Sandbox Code Playgroud)
错误是:
TypeError: DataType string for attr 'out_type' not in list of allowed values: float32, float64, int32, uint8, int16, int8, int64
Run Code Online (Sandbox Code Playgroud)
那么如何1)阅读和2)使用字符串标签进行张量流训练.