Skip to content

Commit 4f11e0d

Browse files
authored
Add files via upload
1 parent bc79093 commit 4f11e0d

File tree

2 files changed

+228
-0
lines changed

2 files changed

+228
-0
lines changed
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
################################################################################
2+
# Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3+
#
4+
# Permission is hereby granted, free of charge, to any person obtaining a
5+
# copy of this software and associated documentation files (the "Software"),
6+
# to deal in the Software without restriction, including without limitation
7+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8+
# and/or sell copies of the Software, and to permit persons to whom the
9+
# Software is furnished to do so, subject to the following conditions:
10+
#
11+
# The above copyright notice and this permission notice shall be included in
12+
# all copies or substantial portions of the Software.
13+
#
14+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
# DEALINGS IN THE SOFTWARE.
21+
################################################################################
22+
23+
# Following properties are mandatory when engine files are not specified:
24+
# int8-calib-file(Only in INT8), model-file-format
25+
# Caffemodel mandatory properties: model-file, proto-file, output-blob-names
26+
# UFF: uff-file, input-dims, uff-input-blob-name, output-blob-names
27+
# ONNX: onnx-file
28+
#
29+
# Mandatory properties for detectors:
30+
# num-detected-classes
31+
#
32+
# Optional properties for detectors:
33+
# cluster-mode(Default=Group Rectangles), interval(Primary mode only, Default=0)
34+
# custom-lib-path
35+
# parse-bbox-func-name
36+
#
37+
# Mandatory properties for classifiers:
38+
# classifier-threshold, is-classifier
39+
#
40+
# Optional properties for classifiers:
41+
# classifier-async-mode(Secondary mode only, Default=false)
42+
#
43+
# Optional properties in secondary mode:
44+
# operate-on-gie-id(Default=0), operate-on-class-ids(Defaults to all classes),
45+
# input-object-min-width, input-object-min-height, input-object-max-width,
46+
# input-object-max-height
47+
#
48+
# Following properties are always recommended:
49+
# batch-size(Default=1)
50+
#
51+
# Other optional properties:
52+
# net-scale-factor(Default=1), network-mode(Default=0 i.e FP32),
53+
# model-color-format(Default=0 i.e. RGB) model-engine-file, labelfile-path,
54+
# mean-file, gie-unique-id(Default=0), offsets, process-mode (Default=1 i.e. primary),
55+
# custom-lib-path, network-mode(Default=0 i.e FP32)
56+
#
57+
# The values in the config file are overridden by values set through GObject
58+
# properties.
59+
60+
[property]
61+
gpu-id=0
62+
net-scale-factor=0.0039215697906911373
63+
#0=RGB, 1=BGR
64+
model-color-format=0
65+
model-engine-file=<onnx_engine_file>
66+
labelfile-path=labels.txt
67+
## 0=FP32, 1=INT8, 2=FP16 mode
68+
network-mode=2
69+
num-detected-classes=80
70+
gie-unique-id=1
71+
network-type=0
72+
is-classifier=0
73+
## 0=Group Rectangles, 1=DBSCAN, 2=NMS, 3= DBSCAN+NMS Hybrid, 4 = None(No clustering)
74+
cluster-mode=2
75+
maintain-aspect-ratio=1
76+
parse-bbox-func-name=NvDsInferParseCustomYoloV4
77+
custom-lib-path=nvdsinfer_custom_impl_Yolo/libnvdsinfer_custom_impl_Yolo.so
78+
engine-create-func-name=NvDsInferYoloCudaEngineGet
79+
#scaling-filter=0
80+
#scaling-compute-hw=0
81+
#output-blob-names=2012
82+
83+
[class-attrs-all]
84+
nms-iou-threshold=0.2
85+
pre-cluster-threshold=0.4
Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
################################################################################
2+
# Copyright (c) 2019-2020, NVIDIA CORPORATION. All rights reserved.
3+
#
4+
# Permission is hereby granted, free of charge, to any person obtaining a
5+
# copy of this software and associated documentation files (the "Software"),
6+
# to deal in the Software without restriction, including without limitation
7+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
8+
# and/or sell copies of the Software, and to permit persons to whom the
9+
# Software is furnished to do so, subject to the following conditions:
10+
#
11+
# The above copyright notice and this permission notice shall be included in
12+
# all copies or substantial portions of the Software.
13+
#
14+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
19+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20+
# DEALINGS IN THE SOFTWARE.
21+
################################################################################
22+
23+
[application]
24+
enable-perf-measurement=1
25+
perf-measurement-interval-sec=5
26+
#gie-kitti-output-dir=streamscl
27+
28+
[tiled-display]
29+
enable=0
30+
rows=1
31+
columns=1
32+
width=1280
33+
height=720
34+
gpu-id=0
35+
#(0): nvbuf-mem-default - Default memory allocated, specific to particular platform
36+
#(1): nvbuf-mem-cuda-pinned - Allocate Pinned/Host cuda memory, applicable for Tesla
37+
#(2): nvbuf-mem-cuda-device - Allocate Device cuda memory, applicable for Tesla
38+
#(3): nvbuf-mem-cuda-unified - Allocate Unified cuda memory, applicable for Tesla
39+
#(4): nvbuf-mem-surface-array - Allocate Surface Array memory, applicable for Jetson
40+
nvbuf-memory-type=0
41+
42+
[source0]
43+
enable=1
44+
#Type - 1=CameraV4L2 2=URI 3=MultiURI
45+
type=3
46+
uri=file:<Your_file_source>
47+
48+
num-sources=1
49+
gpu-id=0
50+
# (0): memtype_device - Memory type Device
51+
# (1): memtype_pinned - Memory type Host Pinned
52+
# (2): memtype_unified - Memory type Unified
53+
cudadec-memtype=0
54+
55+
[sink0]
56+
enable=1
57+
#Type - 1=FakeSink 2=EglSink 3=File
58+
type=2
59+
sync=1
60+
source-id=0
61+
gpu-id=0
62+
63+
[osd]
64+
enable=1
65+
gpu-id=0
66+
border-width=1
67+
text-size=12
68+
text-color=1;1;1;1;
69+
text-bg-color=0.3;0.3;0.3;1
70+
font=Serif
71+
show-clock=0
72+
clock-x-offset=800
73+
clock-y-offset=820
74+
clock-text-size=12
75+
clock-color=1;0;0;0
76+
nvbuf-memory-type=0
77+
78+
[streammux]
79+
gpu-id=0
80+
##Boolean property to inform muxer that sources are live
81+
live-source=0
82+
batch-size=1
83+
##time out in usec, to wait after the first buffer is available
84+
##to push the batch even if the complete batch is not formed
85+
batched-push-timeout=40000
86+
## Set muxer output width and height
87+
width=1280
88+
height=720
89+
##Enable to maintain aspect ratio wrt source, and allow black borders, works
90+
##along with width, height properties
91+
enable-padding=0
92+
nvbuf-memory-type=0
93+
94+
# config-file property is mandatory for any gie section.
95+
# Other properties are optional and if set will override the properties set in
96+
# the infer config file.
97+
[primary-gie]
98+
enable=1
99+
gpu-id=0
100+
model-engine-file=<onnx_engine_file>
101+
labelfile-path=labels.txt
102+
#batch-size=1
103+
#Required by the app for OSD, not a plugin property
104+
bbox-border-color0=1;0;0;1
105+
bbox-border-color1=0;1;1;1
106+
bbox-border-color2=0;0;1;1
107+
bbox-border-color3=0;1;0;1
108+
interval=0
109+
gie-unique-id=1
110+
nvbuf-memory-type=0
111+
config-file=config_infer_primary_yoloV4.txt
112+
113+
[sink1]
114+
enable=1
115+
type=3
116+
#1=mp4 2=mkv
117+
container=1
118+
#1=h264 2=h265 3=mpeg4
119+
codec=1
120+
#encoder type 0=Hardware 1=Software
121+
enc-type=0
122+
sync=0
123+
bitrate=4000000
124+
#H264 Profile - 0=Baseline 2=Main 4=High
125+
#H265 Profile - 0=Main 1=Main10
126+
profile=0
127+
output-file=fp16_clip1_cam1.mp4
128+
source-id=0
129+
130+
[tracker]
131+
enable=1
132+
# For the case of NvDCF tracker, tracker-width and tracker-height must be a multiple of 32, respectively
133+
tracker-width=608
134+
tracker-height=608
135+
#ll-lib-file=/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_mot_iou.so
136+
#ll-lib-file=/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_nvdcf.so
137+
ll-lib-file=/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_mot_klt.so
138+
#ll-config-file required for IOU only
139+
#ll-config-file=iou_config.txt
140+
gpu-id=0
141+
142+
[tests]
143+
file-loop=0

0 commit comments

Comments
 (0)