So I have followed this tutorial and retrained using my own images. https://www.tensorflow.org/tutorials/image_retraining
So I now have an "output_graph.pb" and a "output_labels.txt" (which I can use with other code to classify images).
But how do I actually generate a confusion matrix using a folder of testing images (or at least with the images it was trained on)?
There is https://www.tensorflow.org/api_docs/python/tf/confusion_matrix but that doesnt seem very helpful.
This thread seems to just be using numbers to represent labels rather than actual files, but not really sure: how to create confusion matrix for classification in tensorflow
And Im not really sure how to use the code in this thread either: How do i create Confusion matrix of predicted and ground truth labels with Tensorflow?