Skip to content

Commit a1e3679

Browse files
committed
Align README.md
1 parent a5eea93 commit a1e3679

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ Model API searches for additional information required for model inference, data
4747
from openvino.model_api.models import DetectionModel
4848

4949
# Create a model (downloaded and cached automatically for OpenVINO Model Zoo models)
50-
# Use URL to work with served model, e.g. "localhost:9000/models/ssd300"
51-
ssd = DetectionModel.create_model("ssd300")
50+
# Use URL to work with served model, e.g. "localhost:9000/models/ssdlite_mobilenet_v2"
51+
ssd = DetectionModel.create_model("ssdlite_mobilenet_v2")
5252

5353
# Run synchronous inference locally
5454
detections = ssd(image) # image is numpy.ndarray
@@ -63,7 +63,7 @@ print(f"Detection results: {detections}")
6363
#include <models/results.h>
6464

6565
// Load the model fetched using Python API
66-
auto model = DetectionModel::create_model("~/.cache/omz/public/ssd300/FP16/ssd300.xml");
66+
auto model = DetectionModel::create_model("~/.cache/omz/public/ssdlite_mobilenet_v2/FP16/ssdlite_mobilenet_v2.xml");
6767

6868
// Run synchronous inference locally
6969
auto result = model->infer(image); // image is cv::Mat
@@ -81,13 +81,13 @@ Model's static method `create_model()` has two overloads. One constructs the mod
8181
There are usecases when it is not possible to modify an internal `ov::Model` and it is hidden behind `InferenceAdapter`. For example the model can be served using [OVMS](https://github.com/openvinotoolkit/model_server). `create_model()` can construct a model from a given `InferenceAdapter`. That approach assumes that the model in `InferenceAdapter` was already configured by `create_model()` called with a string (a path or a model name). It is possible to prepare such model using C++ or Python:
8282
C++
8383
```Cpp
84-
auto model = DetectionModel::create_model("~/.cache/omz/public/ssd300/FP16/ssd300.xml");
84+
auto model = DetectionModel::create_model("~/.cache/omz/public/ssdlite_mobilenet_v2/FP16/ssdlite_mobilenet_v2.xml");
8585
const std::shared_ptr<ov::Model>& ov_model = model->getModel();
8686
ov::serialize(ov_model, "serialized.xml");
8787
```
8888
Python
8989
```python
90-
model = DetectionModel.create_model("~/.cache/omz/public/ssd300/FP16/ssd300.xml")
90+
model = DetectionModel.create_model("~/.cache/omz/public/ssdlite_mobilenet_v2/FP16/ssdlite_mobilenet_v2.xml")
9191
model.save("serialized.xml")
9292
```
9393
After that the model can be constructed from `InferenceAdapter`:
@@ -107,7 +107,7 @@ For more details please refer to the [examples](https://github.com/openvinotoolk
107107
- [OpenVINO Model Zoo models](https://github.com/openvinotoolkit/open_model_zoo/blob/master/models/public/index.md#classification-models)
108108
- Object Detection:
109109
- [OpenVINO Model Zoo models](https://github.com/openvinotoolkit/open_model_zoo/blob/master/models/public/index.md#object-detection-models):
110-
- SSD-based models (e.g. "ssd300", "ssdlite_mobilenet_v2", etc.)
110+
- SSD-based models (e.g. "ssdlite_mobilenet_v2", etc.)
111111
- YOLO-based models (e.g. "yolov3", "yolov4", etc.)
112112
- CTPN: "ctpn"
113113
- DETR: "detr-resnet50"
@@ -127,7 +127,7 @@ For more details please refer to the [examples](https://github.com/openvinotoolk
127127
- Image Classification:
128128
- [OpenVINO Model Zoo models](https://github.com/openvinotoolkit/open_model_zoo/blob/master/models/public/index.md#classification-models)
129129
- Object Detection:
130-
- SSD-based models (e.g. "ssd300", "ssdlite_mobilenet_v2", etc.)
130+
- SSD-based models (e.g. "ssdlite_mobilenet_v2", etc.)
131131
- YOLO-based models (e.g. "yolov3", "yolov4", etc.)
132132
- CenterNet: "ctdet_coco_dlav0_512"
133133
- FaceBoxes: "faceboxes-pytorch"

0 commit comments

Comments
 (0)