I'm using this tfhub script for retraining on flower images available here. My terminal output after retraining is
INFO:tensorflow:Restoring parameters from /tmp/_retrain_checkpoint
INFO:tensorflow:Final test accuracy = 92.5% (N=362)
INFO:tensorflow:Save final result to : tf_files/retrained_graph.pb
For a perfect rose, the generated .pb model is predicting as daisy. This is happening for many images in the flower dataset. I've observed the misprediction for another dataset as well.
There's another retraining script by Google Codelabs here. When I'm using the same flower dataset for retraining using this script, my terminal output is
INFO:tensorflow:Final test accuracy = 86.3% (N=4006)
INFO:tensorflow:Froze 2 variables.
Converted 2 variables to const ops.
So, 86.3% (92.5% earlier) accuracy with Inception V3 and the label_image script output is:
The script at Google Codelabs is also predicting correctly that too with very high confidence.
So, what's the difference between these two scripts and why is the 1st script predicting the images incorrectly despite showing very high final test accuracy in the teminal output?
I'm using this tfhub script for retraining on flower images available here. My terminal output after retraining is
So, 92.5% accuracy with Inception V3 and the URL is
https://tfhub.dev/google/imagenet/inception_v3/feature_vector/1.
But when I'm predicting the image with label_image script available here:
My output is
For a perfect rose, the generated .pb model is predicting as daisy. This is happening for many images in the flower dataset. I've observed the misprediction for another dataset as well. There's another retraining script by Google Codelabs here. When I'm using the same flower dataset for retraining using this script, my terminal output is
So, 86.3% (92.5% earlier) accuracy with Inception V3 and the label_image script output is:
The script at Google Codelabs is also predicting correctly that too with very high confidence. So, what's the difference between these two scripts and why is the 1st script predicting the images incorrectly despite showing very high final test accuracy in the teminal output?