-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: streamlining result log filename for preparation of benchmarkin…
…g different pipelines at the same time Signed-off-by: Jim Wang <yutsung.jim.wang@intel.com>
- Loading branch information
1 parent
f05b2d1
commit 164181e
Showing
9 changed files
with
136 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,113 @@ | ||
# | ||
# Copyright (C) 2024 Intel Corporation. | ||
# | ||
# SPDX-License-Identifier: Apache-2.0 | ||
# | ||
|
||
|
||
## Current Developer Toolbox doesn't support environment files, make sure to remove any files or environment variables starting with $ | ||
version: '3.7' | ||
services: | ||
camera-simulator: | ||
container_name: camera-simulator | ||
image: aler9/rtsp-simple-server | ||
ports: | ||
- "127.0.0.1:8554:8554" | ||
camera-simulator0: | ||
image: jrottenberg/ffmpeg:4.1-alpine | ||
container_name: camera-simulator0 | ||
network_mode: "host" | ||
entrypoint: ["/bin/sh","-c"] | ||
command: | ||
- | | ||
if [ ! -f /home/pipeline-server/sample-media/coca-cola-4465029-1920-15-bench.mp4 ]; then | ||
mkdir -p /home/pipeline-server/sample-media | ||
wget -O /home/pipeline-server/sample-media/coca-cola-4465029-1920-15-bench.mp4 https://www.pexels.com/download/video/4465029 | ||
fi | ||
ffmpeg -nostdin -re -stream_loop -1 -i /home/pipeline-server/sample-media/coca-cola-4465029-1920-15-bench.mp4 -c copy -f rtsp -rtsp_transport tcp rtsp://localhost:8554/camera_0 | ||
depends_on: | ||
- camera-simulator | ||
volumes: | ||
- ${RETAIL_USE_CASE_ROOT:-..}/performance-tools/sample-media:/home/pipeline-server/sample-media | ||
|
||
OvmsClientGst1: | ||
image: dlstreamer:dev | ||
deploy: | ||
mode: replicated | ||
replicas: ${PIPELINE_COUNT:-1} | ||
network_mode: "host" | ||
entrypoint: /script/entrypoint.sh --pipeline_script_choice ${PIPELINE_SCRIPT:-yolov5s.sh} | ||
privileged: true | ||
ipc: "host" | ||
env_file: | ||
- ./res/gst.env | ||
- ${DEVICE_ENV:-res/all-cpu.env} | ||
environment: | ||
- CONTAINER_NAME=gst1 | ||
- INPUTSRC=${INPUTSRC:-rtsp://localhost:8554/camera_0} | ||
- RENDER_MODE=${RENDER_MODE:-0} #RENDER_MODE=1 will work only after running xhost +local:docker | ||
- DISPLAY=$DISPLAY | ||
- HTTP_PROXY | ||
- HTTPS_PROXY | ||
- NO_PROXY | ||
volumes: | ||
- ${RESULTS_DIR:-../results}:/tmp/results | ||
- ~/.Xauthority:/home/dlstreamer/.Xauthority | ||
- /tmp/.X11-unix | ||
- ~/.cl-cache:/home/pipeline-server/.cl-cache | ||
- ./res/:/home/pipeline-server/envs | ||
- ${RETAIL_USE_CASE_ROOT:-..}/models:/home/pipeline-server/models | ||
- ./pipelines/:/home/pipeline-server/pipelines | ||
- ./extensions/:/home/pipeline-server/extensions | ||
|
||
OvmsClientGst2: | ||
image: dlstreamer:dev | ||
deploy: | ||
mode: replicated | ||
replicas: ${PIPELINE_COUNT:-1} | ||
network_mode: "host" | ||
entrypoint: /script/entrypoint.sh --pipeline_script_choice ${PIPELINE_SCRIPT:-yolov8s_roi.sh} | ||
privileged: true | ||
ipc: "host" | ||
env_file: | ||
- ./res/gst.env | ||
- ${DEVICE_ENV:-res/all-cpu.env} | ||
environment: | ||
- CONTAINER_NAME=gst2 | ||
- INPUTSRC=${INPUTSRC:-rtsp://localhost:8554/camera_0} | ||
- RENDER_MODE=${RENDER_MODE:-0} #RENDER_MODE=1 will work only after running xhost +local:docker | ||
- DISPLAY=$DISPLAY | ||
- HTTP_PROXY | ||
- HTTPS_PROXY | ||
- NO_PROXY | ||
volumes: | ||
- ${RESULTS_DIR:-../results}:/tmp/results | ||
- ~/.Xauthority:/home/dlstreamer/.Xauthority | ||
- /tmp/.X11-unix | ||
- ~/.cl-cache:/home/pipeline-server/.cl-cache | ||
- ./res/:/home/pipeline-server/envs | ||
- ${RETAIL_USE_CASE_ROOT:-..}/models:/home/pipeline-server/models | ||
- ./pipelines/:/home/pipeline-server/pipelines | ||
- ./extensions/:/home/pipeline-server/extensions | ||
|
||
mosquitto: | ||
image: eclipse-mosquitto:2.0 | ||
container_name: mosquitto | ||
network_mode: "host" | ||
ports: | ||
- "127.0.0.1:1883:1883" | ||
depends_on: | ||
- OvmsClientGst1 | ||
- OvmsClientGst2 | ||
|
||
mqtt_tracker: | ||
image: loss-prevention:dev | ||
network_mode: "host" | ||
environment: | ||
- MQTT_URL=127.0.0.1 | ||
- MQTT_PORT=1883 | ||
- MQTT_TOPIC=event/detection | ||
- ROI_NAME=BASKET | ||
restart: always | ||
depends_on: | ||
- mosquitto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.