Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to generate confusion matrix for tensorflow 2 object detection Api #45

Open
Annieliaquat opened this issue Jul 29, 2022 · 0 comments

Comments

@Annieliaquat
Copy link

Annieliaquat commented Jul 29, 2022

I have trained my tensorflow 2 object detection Api. I got to know from an old github issue that

"In the old API workflow trained model detection/evaluation was accomplished using an infer_detections.py script included in the API. This would would use a frozen_inference_graph to produce a detections.record with model detections. We would then give this detections.record file to confusion_matrix.py to generate confusion matrix.

In the new worfklow (TF v2) there is no infer_detections and the frozen_inference_graph is no longer used. You now need to export your trained model to a saved_model file (exporter_main_v2.py), and then provide that saved_model directory and your test data set (as tfrecord) to the newest version of the confusion matrix script: confusion_matrix_tf2.py "

My question is that how test.TFrecord file will generate confusion matrix? Because confusion matrix need a prediction and true values. However, test.TFrecord has already images with labels, so it will be considered as True values.

So can someone please explain me how the test. TFrecord file will be able to generate confusion matrix??

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant