Closed martin3000 closed 7 years ago
Hi @martin3000, it depends on how you train the network. Do you mind to let me have a look at your script that trains the network?
Of course...have a look. I forgot to normalize the image: img1 = img1 / 255.0. I changed the cost function and now training works:
cross_entropy = tf.reduce_mean(tf.nn.softmax_cross_entropy_with_logits(labels=true_out, logits=vgg.prob))
train = tf.train.GradientDescentOptimizer(0.5).minimize(cross_entropy)
I use test_vgg19_trainable to train the vgg19 net. I feed a photo of a face (not tiger), telling the net it is a tiger (#292=1). But in every run the system says it is a "cup" (#968) with p=1.