Skip to content

Commit 04763a2

Browse files
committed
Update OVMS launch configs
1 parent c8b0a4b commit 04763a2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/test_precommit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,6 @@ jobs:
146146
python -m pip install --upgrade pip
147147
python -m pip install model_api/python/[ovms,tests]
148148
python -c "from model_api.models import DetectionModel; DetectionModel.create_model('ssd_mobilenet_v1_fpn_coco').save('ovms_models/ssd_mobilenet_v1_fpn_coco/1/ssd_mobilenet_v1_fpn_coco.xml')"
149-
docker run -d --rm -v $GITHUB_WORKSPACE/ovms_models/:/models -p 9000:9000 -p 8000:8000 openvino/model_server:latest --model_path /models/ssd_mobilenet_v1_fpn_coco/ --model_name ssd_mobilenet_v1_fpn_coco --port 9000 --rest_port 8000 --log_level DEBUG --target_device CPU
149+
docker run -d --rm -v $GITHUB_WORKSPACE/ovms_models/:/models -p 8000:8000 openvino/model_server:latest --model_path /models/ssd_mobilenet_v1_fpn_coco/ --model_name ssd_mobilenet_v1_fpn_coco --rest_port 8000 --log_level DEBUG --target_device CPU
150150
python tests/cpp/precommit/prepare_data.py -d data -p tests/cpp/precommit/public_scope.json
151151
python examples/python/serving_api/run.py data/coco128/images/train2017/000000000009.jpg # detects 4 objects

examples/python/serving_api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ This example demonstrates how to use a Python API of OpenVINO Model API for a re
2828
- Run docker with OVMS server:
2929

3030
```bash
31-
docker run -d -v /home/user/models:/models -p 9000:9000 openvino/model_server:latest --model_path /models/ssd_mobilenet_v1_fpn_coco --model_name ssd_mobilenet_v1_fpn_coco --port 9000 --shape auto --nireq 4 --target_device CPU --plugin_config "{\"CPU_THROUGHPUT_STREAMS\": \"CPU_THROUGHPUT_AUTO\"}"
31+
docker run -d -v /home/user/models:/models -p 8000:8000 openvino/model_server:latest --model_path /models/ssd_mobilenet_v1_fpn_coco --model_name ssd_mobilenet_v1_fpn_coco --rest_port 8000 --nireq 4 --target_device CPU
3232
```
3333

3434
## Run example

examples/python/serving_api/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def main():
2020

2121
# Create Object Detection model specifying the OVMS server URL
2222
model = DetectionModel.create_model(
23-
"localhost:9000/models/ssd_mobilenet_v1_fpn_coco", model_type="ssd"
23+
"localhost:8000/v2/models/ssd_mobilenet_v1_fpn_coco", model_type="ssd"
2424
)
2525
detections = model(image)
2626
print(f"Detection results: {detections}")

0 commit comments

Comments
 (0)