I am using python 3.6 installed on mac os. I have text file that store name of image and the class number of every single image on.
#label.txt:
img0001.jpg 1
img0002.jpg 3
img0003.jpg 5
img0004.jpg 10
img0005.jpg 6
img0006.jpg 8
img0007.jpg 10
.....
I want to give them to my neural network in tensorflow as label of input data and give the image to network in same time like this
xs = tf.placeholder(tf.float32,[None,#size of my photo])
ys = tf.placeholder(tf.float32,[None,#size of my label if it is an array])
I cannot find any related documentation. could some one tell me what should i do for this pleased ?
解决方案
Assuming that you wanted to know, how to feed image and its respective label into neural network.
There are two things:
Reading the images a