Diff of /Inference/README.md [000000] .. [db7631]

Switch to unified view

a b/Inference/README.md
1
# Inference
2
3
[![TensorFlow 1.15](https://img.shields.io/badge/TensorFlow-1.15-FF6F00?logo=tensorflow)](https://github.com/tensorflow/tensorflow/releases/tag/v1.15.0)
4
[![Python 3.6](https://img.shields.io/badge/Python-3.6-3776AB)](https://www.python.org/downloads/release/python-360/)
5
6
![inference-demo](../imgs/inference_demo.jpg)
7
8
First export the inference graph from the object detection step, and use `Object-Detection/object_detection.py` to generate the detection pickle file.
9
10
Along with the detection pickle, gather the classifier weights from the classification step, then proceed to generate either XMLs or bounding box overlays:
11
12
## Predict and Generate XMLs
13
14
The predicted bounding boxes as well as the classifier grades are stored in the form of XML file. To see the annotated labels as predicted, use [LabelImg](https://github.com/tzutalin/labelImg).
15
16
`Inference/predict_and_generate_xmls.py` outputs the XML that corresponds to a matching image.
17
18
## Predict and Draw Bounding Boxes with Probability
19
20
`Inference/predict_and_draw_bounding_boxes_with_prob.py` draws the bounding boxes as overlay on the original image. For machine predictions, it also fetches the probability of the inference confidence level along with the grade.
21