-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* module image types documentation * lt4 implementation for rtdetr * fixed perf module * updated extra files * updated rtdetr * updated rtdetr * literal fix --------- Co-authored-by: Denis Medyantsev <denisvmedyantsev@gmail.com>
- Loading branch information
1 parent
5097a71
commit 3b8209d
Showing
6 changed files
with
95 additions
and
10 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
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,58 @@ | ||
version: "3.3" | ||
services: | ||
|
||
video-loop-source: | ||
image: ghcr.io/insight-platform/savant-adapters-gstreamer-l4t:latest | ||
restart: unless-stopped | ||
volumes: | ||
- zmq_sockets:/tmp/zmq-sockets | ||
- /tmp/video-loop-source-downloads:/tmp/video-loop-source-downloads | ||
environment: | ||
- LOCATION=https://eu-central-1.linodeobjects.com/savant-data/demo/leeds_1080p.mp4 | ||
- DOWNLOAD_PATH=/tmp/video-loop-source-downloads | ||
- ZMQ_ENDPOINT=dealer+connect:ipc:///tmp/zmq-sockets/input-video.ipc | ||
- SOURCE_ID=leeds | ||
- SYNC_OUTPUT=True | ||
entrypoint: /opt/savant/adapters/gst/sources/video_loop.sh | ||
depends_on: | ||
module: | ||
condition: service_healthy | ||
|
||
module: | ||
build: | ||
context: . | ||
dockerfile: docker/Dockerfile.l4t | ||
volumes: | ||
- zmq_sockets:/tmp/zmq-sockets | ||
- ../../cache:/cache | ||
- ..:/opt/savant/samples | ||
command: samples/rtdetr/module.yml | ||
environment: | ||
- MODEL_PATH=/cache/models/rtdetr | ||
- DOWNLOAD_PATH=/cache/downloads/rtdetr | ||
- ZMQ_SRC_ENDPOINT=router+bind:ipc:///tmp/zmq-sockets/input-video.ipc | ||
- ZMQ_SINK_ENDPOINT=pub+bind:ipc:///tmp/zmq-sockets/output-video.ipc | ||
- CODEC=jpeg | ||
runtime: nvidia | ||
|
||
always-on-sink: | ||
image: ghcr.io/insight-platform/savant-adapters-deepstream-l4t:latest | ||
restart: unless-stopped | ||
ports: | ||
- "554:554" # RTSP | ||
- "1935:1935" # RTMP | ||
- "888:888" # HLS | ||
- "8889:8889" # WebRTC | ||
volumes: | ||
- zmq_sockets:/tmp/zmq-sockets | ||
- ../assets/stub_imgs:/stub_imgs | ||
environment: | ||
- ZMQ_ENDPOINT=sub+connect:ipc:///tmp/zmq-sockets/output-video.ipc | ||
- SOURCE_ID=leeds | ||
- FRAMERATE=25/1 | ||
- STUB_FILE_LOCATION=/stub_imgs/smpte100_1920x1080.jpeg | ||
- DEV_MODE=True | ||
command: python -m adapters.ds.sinks.always_on_rtsp | ||
|
||
volumes: | ||
zmq_sockets: |
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,27 @@ | ||
# build nvinfer custom library for yolo models (create engine and parse bbox functions) | ||
# https://github.com/marcoslucianops/DeepStream-Yolo | ||
FROM nvcr.io/nvidia/deepstream:6.4-triton-multiarch as builder | ||
|
||
ENV CUDA_VER=12.2 | ||
ARG DS_YOLO_VER=5af9da189d91fa8808695c488a417f9f1c920b77 | ||
ARG DS_YOLO_PATH=/opt/yolo | ||
ARG NVDSINFER_PATH=/opt/nvidia/deepstream/deepstream/sources/libs/nvdsinfer | ||
|
||
RUN git clone https://github.com/marcoslucianops/DeepStream-Yolo.git $DS_YOLO_PATH \ | ||
&& cd $DS_YOLO_PATH \ | ||
&& git checkout $DS_YOLO_VER \ | ||
&& make -C nvdsinfer_custom_impl_Yolo | ||
|
||
# patch nvdsinfer_model_builder.cpp: use engine path to place created engine | ||
COPY nvdsinfer_model_builder.patch $NVDSINFER_PATH/ | ||
RUN cd $NVDSINFER_PATH && \ | ||
patch nvdsinfer_model_builder.cpp < nvdsinfer_model_builder.patch && \ | ||
make | ||
|
||
FROM ghcr.io/insight-platform/savant-deepstream-l4t:latest | ||
|
||
ARG DS_YOLO_PATH=/opt/yolo | ||
ARG NVDSINFER_PATH=/opt/nvidia/deepstream/deepstream/sources/libs/nvdsinfer | ||
|
||
COPY --from=builder $DS_YOLO_PATH/nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_Yolo.so /opt/savant/lib/ | ||
COPY --from=builder $NVDSINFER_PATH/libnvds_infer.so /opt/nvidia/deepstream/deepstream/lib/ |
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