-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Benchmark multiple different pipelines running in parallel #18
Merged
jim-wang-intel
merged 6 commits into
intel-retail:main
from
jim-wang-intel:parallel-pipelines
Nov 18, 2024
Merged
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
d134cb3
feat: streamlining result log filename for preparation of benchmarkin…
jim-wang-intel 0f2620e
feat: update stream density make command line examples
jim-wang-intel 7c22b26
docs: update documentation
jim-wang-intel 90a78fa
docs: more documentation updates
jim-wang-intel 0b1fb83
fix: update example docker compose file to use different inputsrc and…
jim-wang-intel 3c72ff0
fix: address Antonio's PR feedback comments
jim-wang-intel File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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,125 @@ | ||
# | ||
# 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: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This container isn't OpenVINO Model Server, we should change the name of it. Maybe There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. fixed. |
||
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:-https://github.com/openvinotoolkit/openvino_notebooks/raw/refs/heads/recipes/recipes/automated_self_checkout/data/example.mp4} | ||
- 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 | ||
|
||
loss-prevention: | ||
image: loss-prevention:dev | ||
network_mode: "host" | ||
environment: | ||
- MQTT_URL=127.0.0.1 | ||
- MQTT_PORT=1883 | ||
- MQTT_TOPIC=event/detection | ||
- ROI_NAME=BASKET,BAGGING | ||
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks, fixed.