ayushr
February 10, 2025, 1:51pm
1
The docker compose for deepstream exits with this
deepstream_container | (deepstream-test5-analytics:1): GLib-GObject-CRITICAL **: 13:12:32.905: g_object_get: assertion 'G_IS_OBJECT (object)' failed
deepstream_container |
deepstream_container |
deepstream_container | (deepstream-test5-analytics:1): GLib-GObject-CRITICAL **: 13:12:32.945: g_object_get: assertion 'G_IS_OBJECT (object)' failed
deepstream_container exited with code 139
I am using rtsp camera for video input for my project i have cross checked my configs they work perfectly !!
Please provide complete information as applicable to your setup.
• Hardware Platform (Jetson / GPU)
• DeepStream Version
• JetPack Version (valid for Jetson only)
• TensorRT Version
• NVIDIA GPU Driver Version (valid for GPU only)
• Issue Type( questions, new requirements, bugs)
• How to reproduce the issue ? (This is for bugs. Including which sample app is using, the configuration files content, the command line used and other details for reproducing)
• Requirement details( This is for new requirement. Including the module name-for which plugin or for which sample application, the function description)
• The pipeline being used
In addition, how to reproduce this problem, can you share the sample code, configuration file and command line?
ayushr
February 11, 2025, 5:44am
6
Docker compose
deepstream:
build:
context: ./deepstream
dockerfile: Dockerfile
container_name: deepstream_container
networks:
- deepstream-kafka-network
runtime: nvidia
ports:
- "8554:8554"
depends_on:
postgres:
condition: service_healthy
kafka:
condition: service_healthy
volumes:
- ./deepstream/scripts:/scripts
- ./deepstream/configs:/configs
entrypoint: ["./deepstream-test5-analytics", "-c", "/opt/nvidia/deepstream/deepstream-7.0/sources/apps/sample_apps/occupancy_analytics/config/dstest_occupancy_analytics.txt"]
healthcheck:
test: ["CMD", "pgrep", "deepstream"]
interval: 30s
timeout: 10s
retries: 5
ayushr
February 11, 2025, 5:44am
7
Tue Feb 11 11:14:12 2025
+-----------------------------------------------------------------------------------------+
| NVIDIA-SMI 550.142 Driver Version: 550.142 CUDA Version: 12.4 |
|-----------------------------------------+------------------------+----------------------+
| GPU Name Persistence-M | Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap | Memory-Usage | GPU-Util Compute M. |
| | | MIG M. |
|=========================================+========================+======================|
| 0 NVIDIA RTX A4000 On | 00000000:01:00.0 Off | Off |
| 46% 65C P2 44W / 140W | 7484MiB / 16376MiB | 0% Default |
| | | N/A |
+-----------------------------------------+------------------------+----------------------+
+-----------------------------------------------------------------------------------------+
| Processes: |
| GPU GI CI PID Type Process name GPU Memory |
| ID ID Usage |
|=========================================================================================|
| 0 N/A N/A 2950 G /usr/lib/xorg/Xorg 167MiB |
| 0 N/A N/A 3320 G ...3/usr/bin/snapd-desktop-integration 31MiB |
| 0 N/A N/A 71207 G /usr/lib/xorg/Xorg 25MiB |
| 0 N/A N/A 565327 C python3 662MiB |
| 0 N/A N/A 565452 C python3 662MiB |
| 0 N/A N/A 565574 C python3 662MiB |
| 0 N/A N/A 565981 C python3 662MiB |
| 0 N/A N/A 687280 C python3 158MiB |
| 0 N/A N/A 695436 C python3 158MiB |
| 0 N/A N/A 696568 C python3 158MiB |
| 0 N/A N/A 713628 C python3 158MiB |
| 0 N/A N/A 759034 G /usr/bin/gnome-shell 112MiB |
| 0 N/A N/A 858458 C /usr/local/bin/a2f_pipeline.run 3282MiB |
| 0 N/A N/A 937132 G ...irefox/5701/usr/lib/firefox/firefox 337MiB |
+-----------------------------------------------------------------------------------------+
Are you using this sample? This sample is no longer being maintained
If you are using DS-7.1
, you can try the following patch, which can work properly on DS-7.1
diff --git a/legacy_apps/deepstream-occupancy-analytics/Makefile b/legacy_apps/deepstream-occupancy-analytics/Makefile
index 67573f4..c6357bf 100644
--- a/legacy_apps/deepstream-occupancy-analytics/Makefile
+++ b/legacy_apps/deepstream-occupancy-analytics/Makefile
@@ -28,7 +28,7 @@ endif
APP:= deepstream-test5-analytics
TARGET_DEVICE = $(shell gcc -dumpmachine | cut -f1 -d -)
-DS_VER = $(shell deepstream-app -v | awk '$$1~/DeepStreamSDK/ {print substr($$2,1,3)}' )
+DS_VER = $(shell deepstream-app -v | awk '$$1~/DeepStreamSDK/ {print substr($$2,1,3)}')
LIB_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(DS_VER)/lib/
APP_INSTALL_DIR?=/opt/nvidia/deepstream/deepstream-$(DS_VER)/bin/
@@ -38,19 +38,19 @@ ifeq ($(TARGET_DEVICE),aarch64)
endif
SRCS:= deepstream_test5_app_main.c
-SRCS+= ../deepstream-test5/deepstream_utc.c
-SRCS+= ../deepstream-app/deepstream_app.c ../deepstream-app/deepstream_app_config_parser.c
-SRCS+= $(wildcard ../../apps-common/src/*.c)
+SRCS+= ../../../deepstream-test5/deepstream_utc.c
+SRCS+= ../../../deepstream-app/deepstream_app.c ../../../deepstream-app/deepstream_app_config_parser.c
+SRCS+= $(wildcard ../../../../apps-common/src/*.c)
INCS= $(wildcard *.h)
-INC_DIR=../deepstream-test5
+INC_DIR=../../../deepstream-test5
PKGS:= gstreamer-1.0 gstreamer-video-1.0 x11 json-glib-1.0
OBJS:= $(SRCS:.c=.o)
OBJS+= deepstream_nvdsanalytics_meta.o
-CFLAGS+= -I../../apps-common/includes -I./includes -I../../../includes -I../deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5
+CFLAGS+= -I../../../../apps-common/includes -I./includes -I../../../../../includes -I../../../deepstream-app/ -DDS_VERSION_MINOR=1 -DDS_VERSION_MAJOR=5
CFLAGS+= -I$(INC_DIR)
CFLAGS+= -I/usr/local/cuda-$(CUDA_VER)/include
diff --git a/legacy_apps/deepstream-occupancy-analytics/config/dstest_occupancy_analytics.txt b/legacy_apps/deepstream-occupancy-analytics/config/dstest_occupancy_analytics.txt
index f335cc9..5d67d68 100644
--- a/legacy_apps/deepstream-occupancy-analytics/config/dstest_occupancy_analytics.txt
+++ b/legacy_apps/deepstream-occupancy-analytics/config/dstest_occupancy_analytics.txt
@@ -69,7 +69,7 @@ smart-rec-file-prefix=smart_record
smart-rec-cache=10
[sink0]
-enable=1
+enable=0
type=2
#1=mp4 2=mkv./bin/kafka-topics --create --bootstrap-server localhost:9092 \
#--replication-factor 1 --partitions 1 --topic users
@@ -88,7 +88,7 @@ output-file=resnet.mp4
source-id=0
[sink1]
-enable=1
+enable=0
#Type - 1=FakeSink 2=EglSink 3=File 4=UDPSink 5=nvoverlaysink 6=MsgConvBroker
type=6
msg-conv-config=msgconv_sample_config.txt
@@ -201,7 +201,7 @@ ll-lib-file=/opt/nvidia/deepstream/deepstream/lib/libnvds_nvmultiobjecttracker.s
# ll-config-file required to set different tracker types
# ll-config-file=../../../../samples/configs/deepstream-app/config_tracker_IOU.yml
# ll-config-file=../../../../samples/configs/deepstream-app/config_tracker_NvSORT.yml
-ll-config-file=../../../../samples/configs/deepstream-app/config_tracker_NvDCF_perf.yml
+ll-config-file=../../../../../../samples/configs/deepstream-app/config_tracker_NvDCF_perf.yml
# ll-config-file=../../../../samples/configs/deepstream-app/config_tracker_NvDCF_accuracy.yml
# ll-config-file=../../../../samples/configs/deepstream-app/config_tracker_NvDeepSORT.yml
enable-batch-process=0
diff --git a/legacy_apps/deepstream-occupancy-analytics/config/model.sh b/legacy_apps/deepstream-occupancy-analytics/config/model.sh
index ce752ac..5bec40d 100755
--- a/legacy_apps/deepstream-occupancy-analytics/config/model.sh
+++ b/legacy_apps/deepstream-occupancy-analytics/config/model.sh
@@ -7,18 +7,7 @@ if [ ! -d peoplenet ];then
fi
cd peoplenet
-if [ ! -e labels.txt ];then
- echo "Downloading peoplenet label.... "
- wget https://api.ngc.nvidia.com/v2/models/nvidia/tao/peoplenet/versions/pruned_quantized_v2.3.2/files/labels.txt
-fi
-
-if [ ! -e resnet34_peoplenet_pruned_int8.etlt ];then
- echo "Downloading peoplenet etlt model.... "
- wget https://api.ngc.nvidia.com/v2/models/nvidia/tao/peoplenet/versions/pruned_quantized_v2.3.2/files/resnet34_peoplenet_pruned_int8.etlt
-fi
-
-if [ ! -e resnet34_peoplenet_pruned_int8.txt ];then
- echo "Downloading peoplenet int8 .... "
- wget https://api.ngc.nvidia.com/v2/models/nvidia/tao/peoplenet/versions/pruned_quantized_v2.3.2/files/resnet34_peoplenet_pruned_int8.txt
-fi
+wget --content-disposition 'https://api.ngc.nvidia.com/v2/models/org/nvidia/team/tao/peoplenet/pruned_quantized_decrypted_v2.3.4/files?redirect=true&path=resnet34_peoplenet_int8.onnx' -O resnet34_peoplenet_int8.onnx
+wget --content-disposition 'https://api.ngc.nvidia.com/v2/models/org/nvidia/team/tao/peoplenet/pruned_quantized_decrypted_v2.3.4/files?redirect=true&path=resnet34_peoplenet_int8.txt' -O resnet34_peoplenet_int8.txt
+wget --content-disposition 'https://api.ngc.nvidia.com/v2/models/org/nvidia/team/tao/peoplenet/pruned_quantized_decrypted_v2.3.4/files?redirect=true&path=labels.txt' -O labels.txt
cd -
diff --git a/legacy_apps/deepstream-occupancy-analytics/config/pgie_peoplenet_tao_config.txt b/legacy_apps/deepstream-occupancy-analytics/config/pgie_peoplenet_tao_config.txt
index dafdb9e..a45d77d 100644
--- a/legacy_apps/deepstream-occupancy-analytics/config/pgie_peoplenet_tao_config.txt
+++ b/legacy_apps/deepstream-occupancy-analytics/config/pgie_peoplenet_tao_config.txt
@@ -22,37 +22,43 @@
[property]
gpu-id=0
net-scale-factor=0.0039215697906911373
-tlt-model-key=tlt_encode
-tlt-encoded-model=peoplenet/resnet34_peoplenet_pruned_int8.etlt
+onnx-file=peoplenet/resnet34_peoplenet_int8.onnx
labelfile-path=peoplenet/labels.txt
-# model-engine-file=peoplenet/resnet34_peoplenet_pruned_int8.etlt_b1_gpu0_int8.engine
-int8-calib-file=peoplenet/resnet34_peoplenet_pruned_int8.txt
-input-dims=3;544;960;0
-uff-input-blob-name=input_1
+# model-engine-file=peoplenet/resnet34_peoplenet_int8.onnx_b1_gpu0_int8.engine
+int8-calib-file=peoplenet/resnet34_peoplenet_int8.txt
+infer-dims=3;544;960
batch-size=1
process-mode=1
model-color-format=0
## 0=FP32, 1=INT8, 2=FP16 mode
network-mode=1
num-detected-classes=3
-cluster-mode=1
+cluster-mode=2
interval=0
gie-unique-id=1
-output-blob-names=output_bbox/BiasAdd;output_cov/Sigmoid
+output-blob-names=output_bbox/BiasAdd:0;output_cov/Sigmoid:0
+#Use the config params below for dbscan clustering mode
+#[class-attrs-all]
+#detected-min-w=4
+#detected-min-h=4
+#minBoxes=3
+#eps=0.7
+
+#Use the config params below for NMS clustering mode
[class-attrs-all]
+topk=20
+nms-iou-threshold=0.5
+pre-cluster-threshold=0.2
+
+## Per class configurations
+[class-attrs-0]
+topk=20
+nms-iou-threshold=0.5
pre-cluster-threshold=0.4
-## Set eps=0.7 and minBoxes for cluster-mode=1(DBSCAN)
-eps=0.7
-minBoxes=1
-[class-attrs-1]
-pre-cluster-threshold=1.4
-## Set eps=0.7 and minBoxes for cluster-mode=1(DBSCAN)
-eps=0.7
-minBoxes=1
-[class-attrs-2]
-pre-cluster-threshold=1.4
-## Set eps=0.7 and minBoxes for cluster-mode=1(DBSCAN)
-eps=0.7
-minBoxes=1
+#[class-attrs-1]
+#pre-cluster-threshold=0.05
+#eps=0.7
+#dbscan-min-score=0.5
+
cd /opt/nvidia/deepstream/deepstream/sources/apps/sample_apps
git clone https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps.git
cd deepstream_reference_apps/legacy_apps/deepstream-occupancy-analytics
make CUDA_VER=12.6
./deepstream-test5-analytics -c config/dstest_occupancy_analytics.txt
If you mean docker-compose can’t run, this is not a problem with deepstream, I’m afraid I can’t provide much help