Skip to content

Commit 4a24152

Browse files
committed
Update to 1.2.0 Release
This release is compatible with DeepStream SDK 7.1 Ubuntu 22.04 Python 3.10 DeepStream SDK 7.1 Features: - New build system using PyPA to support pip 24.2 - Pybind11 version update to v2.13.0 - New bindings: Object encoder API: NvDsObjEncOutParams, NvDsObjEncUsrArgs, nvds_obj_enc_create_context(), nvds_obj_enc_process(), nvds_obj_enc_finish(), nvds_obj_enc_destroy_context(). See integration tests, utils.cpp, and bindfunctions.cpp for reference. - New bindings: NvDsObjReid API. See integration tests and bindtrackermeta.cpp for reference. - New bindings: NvDsAnalyticsObjInfo.objStatus. See bindanalyticsmeta.cpp for reference. Notes: - Numpy 2.x is not currently supported - Segmentation apps are not currently supported in DeepStream 7.1.
1 parent 216ce3a commit 4a24152

File tree

88 files changed

+987
-515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+987
-515
lines changed

.gitmodules

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[submodule "3rdparty/pybind11"]
2-
path = 3rdparty/pybind11
2+
path = bindings/3rdparty/pybind11
33
url = https://github.com/pybind/pybind11.git
4-
[submodule "gstreamer"]
5-
path = 3rdparty/gstreamer
4+
[submodule "3rdparty/git-partial-submodule"]
5+
path = bindings/3rdparty/git-partial-submodule
6+
url = https://github.com/Reedbeta/git-partial-submodule.git
7+
[submodule "3rdparty/gstreamer"]
8+
path = bindings/3rdparty/gstreamer
69
url = https://github.com/GStreamer/gstreamer.git
10+
sparse-checkout = subprojects/gst-python/

3rdparty/gstreamer

Lines changed: 0 additions & 1 deletion
This file was deleted.

3rdparty/pybind11

Lines changed: 0 additions & 1 deletion
This file was deleted.

FAQ.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,5 +165,5 @@ The pyds wheel installs the pyds.so library where all the pip packages are store
165165

166166
Command to install the pyds wheel is:
167167
```bash
168-
$ pip3 install ./pyds-1.1.11-py3-none*.whl
168+
$ pip3 install ./pyds-1.2.0*.whl
169169
```

HOWTO.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ This guide provides resources for DeepStream application development in Python.
1616
## Prerequisites
1717

1818
* Ubuntu 22.04
19-
* [DeepStream SDK 7.0](https://developer.nvidia.com/deepstream-download) or later
19+
* [DeepStream SDK 7.1](https://developer.nvidia.com/deepstream-download) or later
2020
* Python 3.10
2121
* [Gst Python](https://gstreamer.freedesktop.org/modules/gst-python.html) v1.20.3
2222

README.md

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,23 @@
22

33
This repository contains Python bindings and sample applications for the [DeepStream SDK](https://developer.nvidia.com/deepstream-sdk).
44

5-
SDK version supported: 7.0
5+
SDK version supported: 7.1
66

7-
<b>This release only supports Ubuntu 22.04 for DeepStreamSDK 7.0 with Python 3.10 and [gst-python](3rdparty/gst-python/) 1.20.3! Ubuntu 20.04 for DeepStreamSDK 6.3 with Python 3.8 support is NOW DEPRECATED</b>
7+
<b>This release only supports Ubuntu 22.04 for DeepStreamSDK 7.1 with Python 3.10 and [gst-python](3rdparty/gst-python/) 1.20.3! Ubuntu 20.04 for DeepStreamSDK 6.3 with Python 3.8 support is NOW DEPRECATED</b>
88

9-
The bindings sources along with build instructions are available under [bindings](bindings)! We include one [guide](bindings/BINDINGSGUIDE.md) for contributing to bindings and another [guide](bindings/CUSTOMUSERMETAGUIDE.md) for advanced use-cases such as writing bindings for custom data structures.
9+
The bindings sources along with build instructions are available under [bindings](bindings)! PyDS 1.2.0 for DeepStream 7.1 uses an updated build system for PyPA to support pip 24.2, which deprecated setup.py command line. We include one [guide](bindings/BINDINGSGUIDE.md) for contributing to bindings and another [guide](bindings/CUSTOMUSERMETAGUIDE.md) for advanced use-cases such as writing bindings for custom data structures.
1010

1111
Please report any issues or bugs on the [DeepStream SDK Forums](https://devtalk.nvidia.com/default/board/209). This enables the DeepStream community to find help at a central location.
1212

13+
<b>NOTE:<b> numpy 2.x is not supported. If you have numpy 2.x installed, please downgrade by running
14+
```
15+
pip3 install --force-reinstall numpy==1.26.0
16+
```
17+
18+
<b>NOTE:<b> deepstream-segmask and deepstream-segmentation applications are not currently supported by DeepStream 7.1, due to removal of segmentation models.
19+
20+
<b>NOTE for DeepStream dockers:<b> If you installed PyDS by running the user_deepstream_python_apps_install.sh script, be sure you also run the <b>user_additional_install.sh script<b>.
21+
1322
- [DeepStream Python Apps](#deepstream-python-apps)
1423
- [Setup](#setup)
1524
- [Python Bindings](#python-bindings)
@@ -59,15 +68,15 @@ We currently provide the following sample applications:
5968
* [deepstream-test1-usbcam](apps/deepstream-test1-usbcam) -- deepstream-test1 pipeline with USB camera input
6069
* [deepstream-test1-rtsp-out](apps/deepstream-test1-rtsp-out) -- deepstream-test1 pipeline with RTSP output, demonstrates adding software encoder option to support Jetson Orin Nano
6170
* [deepstream-opticalflow](apps/deepstream-opticalflow) -- optical flow and visualization pipeline with flow vectors returned in NumPy array
62-
* [deepstream-segmentation](apps/deepstream-segmentation) -- segmentation and visualization pipeline with segmentation mask returned in NumPy array
71+
* [deepstream-segmentation](apps/deepstream-segmentation) -- **NOT CURRENTLY SUPPORTED IN DS 7.1** segmentation and visualization pipeline with segmentation mask returned in NumPy array
6372
* [deepstream-nvdsanalytics](apps/deepstream-nvdsanalytics) -- multistream pipeline with analytics plugin
6473
* [runtime_source_add_delete](apps/runtime_source_add_delete) -- add/delete source streams at runtime
6574
* [deepstream-imagedata-multistream-redaction](apps/deepstream-imagedata-multistream-redaction) -- multi-stream pipeline with face detection and redaction
6675
* [deepstream-rtsp-in-rtsp-out](apps/deepstream-rtsp-in-rtsp-out) -- multi-stream pipeline with RTSP input/output - has command line option "--rtsp-ts" for configuring the RTSP source to attach the timestamp rather than the streammux
6776
* [deepstream-preprocess-test](apps/deepstream-preprocess-test) -- multi-stream pipeline using nvdspreprocess plugin with custom ROIs
6877
* [deepstream-demux-multi-in-multi-out](apps/deepstream-demux-multi-in-multi-out) -- multi-stream pipeline using nvstreamdemux plugin to generated separate buffer outputs
6978
* [deepstream-imagedata-multistream-cupy](apps/deepstream-imagedata-multistream-cupy) -- access imagedata buffer from GPU in a multistream source as CuPy array - x86 only
70-
* [deepstream-segmask](apps/deepstream-segmask) -- access and interpret segmentation mask information from NvOSD_MaskParams
79+
* [deepstream-segmask](apps/deepstream-segmask) -- **NOT CURRENTLY SUPPORTED IN DS 7.1** access and interpret segmentation mask information from NvOSD_MaskParams
7180
* [deepstream-custom-binding-test](apps/deepstream-custom-binding-test) -- demonstrate usage of NvDsUserMeta for attaching custom data structure - see also the [Custom User Meta Guide](bindings/CUSTOMUSERMETAGUIDE.md)
7281

7382

apps/README

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ DeepStream SDK Python Bindings
2020
================================================================================
2121
Setup pre-requisites:
2222
- Ubuntu 22.04
23-
- NVIDIA DeepStream SDK 7.0
23+
- NVIDIA DeepStream SDK 7.1
2424
- Python 3.10
2525
- Gst-python
2626

@@ -36,7 +36,7 @@ Package Contents
3636
Installing Pre-requisites:
3737
--------------------------------------------------------------------------------
3838

39-
DeepStream SDK 7.0
39+
DeepStream SDK 7.1
4040
--------------------
4141
Download and install from https://developer.nvidia.com/deepstream-download
4242

@@ -51,14 +51,14 @@ If missing, install with the following steps:
5151
$ sudo apt update
5252
$ sudo apt install python3-gi python3-dev python3-gst-1.0 -y
5353

54-
cuda-python
54+
**NEW** cuda-python
5555
-----------
5656
$ pip3 install cuda-python
5757

5858
--------------------------------------------------------------------------------
5959
Running the samples
6060
--------------------------------------------------------------------------------
61-
The apps are configured to work from inside the DeepStream SDK 7.0 installation.
61+
The apps are configured to work from inside the DeepStream SDK 7.1 installation.
6262

6363
Clone the deepstream_python_apps repo under <DeepStream ROOT>/sources:
6464
$ git clone https://github.com/NVIDIA-AI-IOT/deepstream_python_apps

apps/deepstream-custom-binding-test/README

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
################################################################################
2-
# SPDX-FileCopyrightText: Copyright (c) 2022 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-FileCopyrightText: Copyright (c) 2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -16,7 +16,7 @@
1616
################################################################################
1717

1818
Prequisites:
19-
- DeepStreamSDK 7.0
19+
- DeepStreamSDK 7.1
2020
- Python 3.10
2121
- Gst-python
2222

apps/deepstream-demux-multi-in-multi-out/README

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
################################################################################
1717

1818
Prerequisites:
19-
- DeepStreamSDK 7.0
19+
- DeepStreamSDK 7.1
2020
- Python 3.10
2121
- Gst-python
2222

apps/deepstream-demux-multi-in-multi-out/ds_demux_pgie_config.txt

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
################################################################################
2-
# SPDX-FileCopyrightText: Copyright (c) 2019-2023 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
2+
# SPDX-FileCopyrightText: Copyright (c) 2019-2024 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
33
# SPDX-License-Identifier: Apache-2.0
44
#
55
# Licensed under the Apache License, Version 2.0 (the "License");
@@ -55,29 +55,24 @@
5555
[property]
5656
gpu-id=0
5757
net-scale-factor=0.00392156862745098
58-
tlt-model-key=tlt_encode
59-
tlt-encoded-model=../../../../samples/models/Primary_Detector/resnet18_trafficcamnet.etlt
60-
model-engine-file=../../../../samples/models/Primary_Detector/resnet18_trafficcamnet.etlt_b30_gpu0_int8.engine
58+
onnx-file=../../../../samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx
59+
model-engine-file=../../../../samples/models/Primary_Detector/resnet18_trafficcamnet_pruned.onnx_b1_gpu0_int8.engine
6160
labelfile-path=../../../../samples/models/Primary_Detector/labels.txt
6261
int8-calib-file=../../../../samples/models/Primary_Detector/cal_trt.bin
63-
force-implicit-batch-dim=1
64-
batch-size=30
62+
63+
batch-size=1
6564
process-mode=1
6665
model-color-format=0
6766
## 0=FP32, 1=INT8, 2=FP16 mode
6867
network-mode=1
6968
num-detected-classes=4
7069
interval=0
7170
gie-unique-id=1
72-
uff-input-order=0
73-
uff-input-blob-name=input_1
74-
output-blob-names=output_cov/Sigmoid;output_bbox/BiasAdd
7571
#scaling-filter=0
7672
#scaling-compute-hw=0
7773
cluster-mode=2
78-
infer-dims=3;544;960
7974

8075
[class-attrs-all]
8176
pre-cluster-threshold=0.2
82-
eps=0.2
83-
group-threshold=1
77+
topk=20
78+
nms-iou-threshold=0.5

0 commit comments

Comments
 (0)