摘要: OutOfRangeError (see above for traceback): RandomShuffleQueue '_1_shuffle_batch/random_shuffle_queue' is closed and has insufficient elements (request 阅读全文
posted @ 2018-08-20 14:20 Myuniverse 阅读(577) 评论(0) 推荐(0) 编辑
摘要: Tf.python_io.TFRecordWrite(path:TFRcord文件路径):表示的是个类,它的作用是创建一个对象,这个对象负责将数据写入TFRecords文件中 Enumerate()参数、用法 用法:将一个可遍历的数据对象组合为一个索引序列,同时列出数据和数据下标 Tf.train. 阅读全文
posted @ 2018-08-20 14:18 Myuniverse 阅读(323) 评论(0) 推荐(0) 编辑
摘要: import tensorflow as tfimport osimport cv2def handle_data(photo_path): #制作数据集 writer = tf.python_io.TFRecordWriter("data_photo.tfrecords") cast = {"bo 阅读全文
posted @ 2018-08-20 14:15 Myuniverse 阅读(810) 评论(0) 推荐(0) 编辑