def _file_reader(self, filename_queue):
# read file from queue
reader = tf.WholeFileReader()
_, img_bytes = reader.read(filename_queue)
# decode it
image_data = tf.image.decode_jpeg(img_bytes, channels=3)
# preprocess it and return
return preprocess(image_data, self.config)
评论列表
文章目录