i reading images jpeg files , creating image batch. labels{0,1} images in list "labels". code reading images is
def image_reader(): # filename queue filename_queue = tf.train.string_input_producer( tf.train.match_filenames_once(data_path + "/*.jpg")) # read entire image file required s image_reader = tf.wholefilereader() # read whole file queue, first returned value in tuple filename key, image_file = image_reader.read(filename_queue) # decode image jpeg file give image tensor image = tf.image.decode_jpeg(image_file) return image, key
the image returned queue tensor object. how can resize it. tf.resize function not work. , how can assign labels image based on key. key tensor object , can accessed in session not outside it.
Comments
Post a Comment