Skip to content

Commit

Permalink
Update savant rs 0.2.30 and fix minor bugs (#775)
Browse files Browse the repository at this point in the history
* module image types documentation

* added docs for auxiliary streams

* Closes #766
  • Loading branch information
bwsw authored Jun 10, 2024
1 parent 8a1c922 commit 641d16e
Show file tree
Hide file tree
Showing 64 changed files with 79 additions and 119 deletions.
21 changes: 21 additions & 0 deletions docs/source/advanced_topics/13_auxiliary_video_streams.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Auxiliary Video Streams
-----------------------

There are situations, when you want to create a video stream which is artificial and does not match to any source video streams.

Examples of such streams are:

- Grid streams (e.g. 2x2 grid of videos);
- Video streams with augmentations (e.g. video with a sidebar or dashboard);
- Videos of other resolutions, e.g. you transcode incoming 4k to 1080p, 720p, 480p, etc.
- Super-resolution streams, e.g. you upscale incoming 720p to 1080p.
- Frame interpolation streams, e.g. you create a 60fps video from 30fps video.

Savant 0.4.1 introduces the concept of auxiliary streams. An auxiliary stream is a stream that is not directly associated with any source stream. It is created by the user in PyFunc and is sent directly to pipeline sink , bypassing downstream pipeline elements.

The sample showing how to work with auxiliary streams is available in the `examples/auxiliary_streams <https://github.com/insight-platform/Savant/tree/develop/samples/auxiliary_streams>`__ directory. The sample shows how to convert a video stream to multiple resolutions and send them to the pipeline sink.

.. note::

Auxiliary streams deliver metadata provided by the user.

4 changes: 2 additions & 2 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
.. Savant documentation master file,
should at least contain the root `toctree` directive.
.. Savant documentation master file, should at least contain the root `toctree` directive.
Welcome To Savant Documentation
===================================
Expand Down Expand Up @@ -198,6 +197,7 @@ Savant supports processing parallelization; it helps to utilize the available re
advanced_topics/10_client_sdk
advanced_topics/11_memory_representation_function.rst
advanced_topics/12_torch_hub.rst
advanced_topics/13_auxiliary_video_streams.rst

.. toctree::
:maxdepth: 0
Expand Down
3 changes: 2 additions & 1 deletion docs/source/savant_101/12_video_processing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,8 @@ PNG Сodec

PNG compression level. Range: ``0`` - ``9``. The default value is ``6``.

Example:
Codec Configuration Examples
^^^^^^^^^^^^^^^^^^^^^^^^^^^^

.. code-block:: yaml
Expand Down
1 change: 0 additions & 1 deletion samples/age_gender_recognition/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
5 changes: 2 additions & 3 deletions samples/age_gender_recognition/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down Expand Up @@ -38,7 +37,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

always-on-sink:
image: ghcr.io/insight-platform/savant-adapters-deepstream:latest
Expand All @@ -64,7 +63,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

volumes:
zmq_sockets:
3 changes: 1 addition & 2 deletions samples/animegan/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

source:
Expand Down Expand Up @@ -37,7 +36,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

video-sink:
image: ghcr.io/insight-platform/savant-adapters-gstreamer:latest
Expand Down
1 change: 0 additions & 1 deletion samples/area_object_counting/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
5 changes: 2 additions & 3 deletions samples/area_object_counting/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down Expand Up @@ -38,7 +37,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

always-on-sink:
image: ghcr.io/insight-platform/savant-adapters-deepstream:latest
Expand All @@ -63,7 +62,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

volumes:
zmq_sockets:
1 change: 0 additions & 1 deletion samples/auxiliary_streams/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
5 changes: 2 additions & 3 deletions samples/auxiliary_streams/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down Expand Up @@ -33,7 +32,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

always-on-sink:
image: ghcr.io/insight-platform/savant-adapters-deepstream:latest
Expand All @@ -58,7 +57,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

volumes:
zmq_sockets:
1 change: 0 additions & 1 deletion samples/buffer_adapter/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
5 changes: 2 additions & 3 deletions samples/buffer_adapter/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down Expand Up @@ -59,7 +58,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

always-on-sink:
image: ghcr.io/insight-platform/savant-adapters-deepstream:latest
Expand All @@ -85,7 +84,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

prometheus:
image: prom/prometheus:v2.48.0
Expand Down
3 changes: 1 addition & 2 deletions samples/conditional_video_processing/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down Expand Up @@ -67,7 +66,7 @@ services:
ports:
- "2379:2379"
healthcheck:
test: ["CMD", "/opt/bitnami/scripts/etcd/healthcheck.sh"]
test: [ "CMD", "/opt/bitnami/scripts/etcd/healthcheck.sh" ]
interval: 5s
timeout: 5s
retries: 3
Expand Down
7 changes: 3 additions & 4 deletions samples/conditional_video_processing/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down Expand Up @@ -41,7 +40,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

always-on-sink:
image: ghcr.io/insight-platform/savant-adapters-deepstream:latest
Expand All @@ -67,7 +66,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

etcd:
container_name: etcd
Expand All @@ -79,7 +78,7 @@ services:
ports:
- "2379:2379"
healthcheck:
test: ["CMD", "/opt/bitnami/scripts/etcd/healthcheck.sh"]
test: [ "CMD", "/opt/bitnami/scripts/etcd/healthcheck.sh" ]
interval: 5s
timeout: 5s
retries: 3
Expand Down
1 change: 0 additions & 1 deletion samples/face_reid/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

index-builder-client:
Expand Down
7 changes: 3 additions & 4 deletions samples/face_reid/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

index-builder-client:
Expand Down Expand Up @@ -39,7 +38,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]
profiles:
- index

Expand Down Expand Up @@ -85,7 +84,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]
profiles:
- demo

Expand Down Expand Up @@ -113,7 +112,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]
profiles:
- demo

Expand Down
1 change: 0 additions & 1 deletion samples/fisheye_line_crossing/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
5 changes: 2 additions & 3 deletions samples/fisheye_line_crossing/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down Expand Up @@ -40,7 +39,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

always-on-sink:
image: ghcr.io/insight-platform/savant-adapters-deepstream:latest
Expand All @@ -65,7 +64,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

graphite:
image: graphiteapp/graphite-statsd
Expand Down
1 change: 0 additions & 1 deletion samples/intersection_traffic_meter/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
5 changes: 2 additions & 3 deletions samples/intersection_traffic_meter/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down Expand Up @@ -39,7 +38,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

always-on-sink:
image: ghcr.io/insight-platform/savant-adapters-deepstream:latest
Expand All @@ -64,7 +63,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

graphite:
image: graphiteapp/graphite-statsd
Expand Down
2 changes: 0 additions & 2 deletions samples/kafka_redis_adapter/docker-compose-no-keydb.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.3"

services:
kafka:
image: bitnami/kafka:3.5.1
Expand Down
2 changes: 0 additions & 2 deletions samples/kafka_redis_adapter/docker-compose-no-keydb.x86.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.3"

services:
kafka:
image: bitnami/kafka:3.5.1
Expand Down
2 changes: 0 additions & 2 deletions samples/kafka_redis_adapter/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.3"

services:
kafka:
image: bitnami/kafka:3.5.1
Expand Down
2 changes: 0 additions & 2 deletions samples/kafka_redis_adapter/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: "3.3"

services:
kafka:
image: bitnami/kafka:3.5.1
Expand Down
1 change: 0 additions & 1 deletion samples/keypoint_detection/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
5 changes: 2 additions & 3 deletions samples/keypoint_detection/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down Expand Up @@ -38,7 +37,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

always-on-sink:
image: ghcr.io/insight-platform/savant-adapters-deepstream:latest
Expand All @@ -64,7 +63,7 @@ services:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
capabilities: [ gpu ]

volumes:
zmq_sockets:
1 change: 0 additions & 1 deletion samples/kvs/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
1 change: 0 additions & 1 deletion samples/kvs/docker-compose.x86.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
1 change: 0 additions & 1 deletion samples/license_plate_recognition/docker-compose.l4t.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
version: "3.3"
services:

video-loop-source:
Expand Down
Loading

0 comments on commit 641d16e

Please sign in to comment.