0
我已经安装我的阅读管道如下:(在this教程解释)关联与filename_queue元数据TensorFlow
filename_queue = tf.train.string_input_producer(filenames, shuffle=True)
image_reader = tf.WholeFileReader()
key, image_file = image_reader.read(filename_queue)
image = tf.image.decode_png(image_file, channels)
# need to access the file name here!
我如何可以访问该文件的名称(或一些其它标识符我可以与关联该文件),而阅读图像?