You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To run the API, go to the project's root directory and run the following:
59
+
To run the API, go the to the API's directory and run the following:
60
60
61
61
#### Using Linux based docker:
62
62
@@ -135,31 +135,34 @@ Returns the specified model's configuration
135
135
136
136
Performs inference on specified model and a list of images, and returns bounding boxes
137
137
138
+
**P.S: Custom endpoints like /load, /detect, and /get_labels should be used in a chronological order. First you have to call /load, and then call /detect or /get_labels**
139
+
138
140
## Model structure
139
141
140
142
The folder "models" contains subfolders of all the models to be loaded.
141
143
Inside each subfolder there should be a:
142
144
143
-
- pb file: contains the model weights
144
-
- pbtxt file: contains model classes
145
+
- pb file (frozen_inference_graph.pb): contains the model weights
146
+
147
+
- pbtxt file (object-detection.pbtxt): contains model classes
148
+
145
149
- Config.json (This is a json file containing information about the model)
146
150
147
151
```json
148
152
{
149
153
"inference_engine_name": "tensorflow_detection",
150
-
"confidence": 60,
151
-
"predictions": 15,
152
-
"number_of_classes": 2,
154
+
"confidence": <between_0_and_100>,
155
+
"predictions": <positive_number>,
156
+
"number_of_classes": <number_of_classes>,
153
157
"framework": "tensorflow",
154
158
"type": "detection",
155
159
"network": "inception"
156
160
}
157
161
```
158
162
P.S:
159
-
- "number_of_classes" value should be equal to your model's number of classes
160
-
- You can change "confidence" and "predictions" values while running the API
161
-
- The API will return bounding boxes with a confidence higher than the "confidence" value. A high "confidence" can show you only accurate predictions. "confidence" value should be between 0 and 100
162
-
- The "predictions" value specifies the maximum number of bounding boxes in the API response. It should be positive
163
+
- You can change confidence and predictions values while running the API
164
+
- The API will return bounding boxes with a confidence higher than the "confidence" value. A high "confidence" can show you only accurate predictions
165
+
- The "predictions" value specifies the maximum number of bounding boxes in the API response
163
166
164
167
165
168
## Benchmarking
@@ -229,10 +232,3 @@ Inside each subfolder there should be a:
0 commit comments