Skip to content

Commit

Permalink
feat: integrate ovms
Browse files Browse the repository at this point in the history
  • Loading branch information
NeethuES-intel committed Jun 14, 2024
1 parent 4fa2953 commit 063f68e
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 3 deletions.
13 changes: 12 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,22 @@ run-vap: models
cd ./loss-detection-app && \
docker compose -p ${STACK_NAME} -f docker-compose.edgex.yml -f docker-compose.loss-detection.yml -f docker-compose.vap.yml up -d

run-ovms:
cd ./loss-detection-app && docker compose -p ${STACK_NAME} -f docker-compose-ovms.yml up -d

run-vap-ovms: run-ovms
cd ./loss-detection-app && \
docker compose -p ${STACK_NAME} -f docker-compose.edgex.yml -f docker-compose.loss-detection.yml up -d

run-full: run-vap

down:
cd ./loss-detection-app && \
docker compose -p ${STACK_NAME} -f docker-compose.edgex.yml -f docker-compose.loss-detection.yml -f docker-compose.vap.yml down -v
docker compose -p ${STACK_NAME} -f docker-compose.edgex.yml -f docker-compose.loss-detection.yml -f docker-compose.vap.yml -f docker-compose-ovms.yml down -v

down-ovms:
cd ./loss-detection-app && \
docker compose -p ${STACK_NAME} -f docker-compose-ovms.yml down -v

down-portainer:
cd ./loss-detection-app && docker compose -p portainer -f docker-compose.portainer.yml down
Expand Down
31 changes: 31 additions & 0 deletions loss-detection-app/docker-compose-ovms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
########################################################################
# Copyright (c) Intel Corporation 2024
# SPDX-License-Identifier: BSD-3-Clause
########################################################################

version: '3.7'
networks:
edgex-network:
driver: bridge
services:
openvino-ovms:
image: openvino/model_server:latest
container_name: openvino
restart: always
user: '${UID}:${GID}'
networks:
edgex-network: {}
ports:
- '9001:9001'
- '9002:9002'
command:
- '--config_path'
- '/home/ovms/models/config.json'
- '--grpc_port'
- '9001'
- '--rest_port'
- '9002'
- '--log_level'
- 'INFO'
volumes:
- ./ovms-models:/home/ovms/models
4 changes: 2 additions & 2 deletions loss-detection-app/docker-compose.vap.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ services:
# - CAMERA0_ENDPOINT=http://pipeline-server:8080/pipelines/product_detection/frame_store
# Fill in camera source info below
# for RTSP cameras
# - CAMERA0_SRC=file:///home/pipeline-server/video-samples/grocery-test.mp4
- CAMERA0_SRC=file:///home/pipeline-server/video-samples/EnterExitEvent_2second.mp4
- CAMERA0_SRC=file:///home/pipeline-server/video-samples/grocery-test.mp4
#- CAMERA0_SRC=file:///home/pipeline-server/video-samples/EnterExitEvent_2second.mp4
# or for USB cameras
# - CAMERA0_SRC=/dev/video0
- CAMERA0_ROI_NAME=Staging
Expand Down
10 changes: 10 additions & 0 deletions loss-detection-app/ovms-models/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"model_config_list": [
{
"config": {
"name": "product-detection-0001",
"base_path": "/home/ovms/models/product-detection-0001"
}
}
]
}
Empty file.

0 comments on commit 063f68e

Please sign in to comment.