|
a |
|
b/Inference/README.md |
|
|
1 |
# Inference |
|
|
2 |
|
|
|
3 |
[](https://github.com/tensorflow/tensorflow/releases/tag/v1.15.0) |
|
|
4 |
[](https://www.python.org/downloads/release/python-360/) |
|
|
5 |
|
|
|
6 |
 |
|
|
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 |
|