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!
我如何可以訪問該文件的名稱(或一些其它標識符我可以與關聯該文件),而閱讀圖像?