Skip to content

Commit cc47936

Browse files
Updated documentation
1 parent a28815d commit cc47936

1 file changed

Lines changed: 13 additions & 17 deletions

File tree

README.md

Lines changed: 13 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ sudo docker build --build-arg http_proxy='' --build-arg https_proxy='' -t tensor
5656

5757
## Run the docker container
5858

59-
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:
6060

6161
#### Using Linux based docker:
6262

@@ -135,31 +135,34 @@ Returns the specified model's configuration
135135

136136
Performs inference on specified model and a list of images, and returns bounding boxes
137137

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+
138140
## Model structure
139141

140142
The folder "models" contains subfolders of all the models to be loaded.
141143
Inside each subfolder there should be a:
142144

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+
145149
- Config.json (This is a json file containing information about the model)
146150

147151
```json
148152
{
149153
"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>,
153157
"framework": "tensorflow",
154158
"type": "detection",
155159
"network": "inception"
156160
}
157161
```
158162
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
163166

164167

165168
## Benchmarking
@@ -229,10 +232,3 @@ Inside each subfolder there should be a:
229232

230233
## Acknowledgment
231234

232-
[inmind.ai](https://inmind.ai)
233-
234-
[robotron.de](https://robotron.de)
235-
236-
Joe Sleiman, inmind.ai , Beirut, Lebanon
237-
238-
Antoine Charbel, inmind.ai, Beirut, Lebanon

0 commit comments

Comments
 (0)