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

Update README.md #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,18 @@ To run this script you need a couple of things:

* A detection record file — This is the file generated by using the `/object_detection/inference/infer_detections.py`. This script runs a TFRecord file through your model and saves the results in a detection record file.

Here is an example of running the script:
Here is an example of running the script :

```
python confusion_matrix.py --detections_record=testing_detections.record --label_map=label_map.pbtxt --output_path=confusion_matrix.csv
```

Here is an example of running the script using TensorFlow 2:

```
!python confusion_matrix2.py --input_tfrecord_path=test.record --class_labels=label_map.pbtxt --output_path=confusion_matrix.csv --inference_graph=/inference_graph/saved_model
```

The script will print the confusion matrix along with precision and recall information to the standard output and save the precision/recall results to the specified output area.

## Sometimes things fail, so read up
Expand Down