File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
examples/python/serving_api Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 } " )
You can’t perform that action at this time.
0 commit comments