deepstream配置文件词汇

deepstream-5.0配置文件词汇
deepstream-4.0配置文件词汇
1、[application]
enable-perf-measurement 是否启用应用程序性能度量
perf-measurement-interval-sec 对性能指标进行采样和打印的间隔(秒)
gie-kitti-output-dir 应用程序以修改后的KITTI元数据格式存储主检测器输出的现有目录的路径名。
kitti-track-output-dir 应用程序以修改后的KITTI元数据格式存储跟踪器输出的现有目录的路径名。

2、[tiled-display] 平铺显示
enable 是否启用平铺显示
rows 平铺二维数组中的行数 rows=5
columns
width 平铺二维数组的宽度(像素)width=1280
height
gpu-id 如果有多个GPU,则元素将使用GPU几号(只适用于dGPU,不适用于Jetson)
nvbuf-memory-type
元素要为输出缓冲区分配的内存类型。
0(nvbuf mem default):特定于平台的默认类型
1(nvbuf mem cuda pinned):pinned/主机cuda内存
2(nvbuf mem cuda设备):设备cuda内存
3(nvbuf mem cuda unified):统一cuda内存
对于dGPU:所有值都有效。
对于Jetson:只有0(零)是有效的。

3、源组指定源属性。DeepStream应用程序支持多个同时的源。对于每个源,必须在配置文件中添加一个组名为(如源%d)的单独组,例如:
[source0]
key1=value1
key2=value2

[source1]
key1=value1
key2=value2

enable 启用或禁用源
type 1: Camera (V4L2)
2: URI
3: MultiURI
4: RSTP
5: Camera (CSI) (Jetson only)
uri 编码流的URI。URI可以是文件、HTTP URI或RTSP实时源。当类型为2或3时有效。对于MultiURI,还可以使用%d格式说明符指定多个源。应用程序从0迭代到num sources 1以生成当前uri。
uri=file:///home/ubuntu/source.mp4
uri=http://127.0.0.1/source.mp4
uri=rtsp://127.0.0.1/source1
uri=file:///home/ubuntu/source_%d.mp4

num-sources 来源数量。仅当type=3时有效。
intra-decode-enable 启用或禁用仅内部解码。
num-extra-surfaces 除解码器给出的最小解码曲面外的曲面数。可用于管理管道中解码器输出缓冲区的数量。
gpu-id 多个GPU时元素使用的GPU。
camera-id 要添加到元数据的输入源的唯一ID。(可选)

下面4个当type=1或5时有效。
camera-width–Width of frames to be requested from the camera, in pixels–camera-width=1920
camera-height
camera-fps-n 指定摄像机请求的帧速率的分数的分子部分,以帧/秒为单位
camera-fps-d

camera-v4l2-dev-node V4L2设备节点的编号。例如,/dev/video用于开源V4L2摄像机捕获路径。当类型设置(源类型)为1时有效
latency 仅适用于RTSP流,延迟(毫秒)
drop-frame-interval 放置帧的间隔。例如,5表示解码器每5帧输出一次;0表示不丢弃任何帧
nvbuf-memory-type CUDA内存元素的类型是为输出缓冲区分配

4、[streammux]—[streammux]组指定并修改Gst nvreammux插件的属性。
live-source Boolean 通知muxer源是活动的batch-size
Muxer batch size width Muxer输出宽度(像素)
width=1280heightenable-padding 指示在通过添加黑带进行缩放时是否保持源纵横比。

5、[primary-gie]
key1=value1
key2=value2

[secondary-gie1]
key1=value1
key2=value2

gie-unique-id 要分配给nvinfer实例的唯一组件ID。用于标识实例生成的元数据。
gpu-id 多个GPU时元素使用的GPU。
model-engine-file 模式的预生成序列化引擎文件的绝对路径名。
config-file 指定Gst nvinfer插件属性的配置文件的路径名。它可以包含此表中描述的任何属性,配置文件本身除外。属性必须在名为[property]的组中定义。
batch-size 一批要一起推断的帧(P.GIE)/对象(S.GIE)的数目interval 要跳过以进行推断的连续批数。
bbox-border-color
bbox-bg-color
operate-on-gie-id GIE的唯一ID,该GIE将在其元数据(NvDsFrameMeta)上操作operate-on-class-ids 此GIE必须在其上操作的父GIE的类ID。使用对GIE id的操作指定父GIE

6、[tracker]
tracker-width 跟踪器工作的帧宽度,以像素为单位。
ll-config-file 低级跟踪器配置文件的路径名。
ll-lib-file 低级跟踪器实现库的路径名。
enable-batch-process 启用跨多个流的批处理。

7、[OSD]
process-mode NvOSD processing mode. 0: CPU 1: GPU (dGPU only) 2: Hardware (Jetson only)

8、[sink] sink组指定属性并修改sink组件的行为以进行渲染、编码和文件保存
type Type of sink, to use.
1: Fakesink 显示时候啥都没有
2: EGL based windowed sink (nveglglessink) 显示出窗口
3: Encode + File Save (encoder + muxer + filesink) 输出保存成outputfile时候用
4: Encode + RTSP streaming 5: Overlay (Jetson only)
sync 指示流的呈现速度。 0:尽快 1: 同步地
It is synchronization mechanism in gstreamer. For live-source such as IP camera or Bayer sensors, since the source gives frames in static framerate, you can set sync=0 to disable the mechanism. For local video file, suggest set sync=1 to get smooth video playback
qos boolean 指示接收器是否生成服务质量事件,当管道FPS无法跟上流帧速率时,这可能导致管道丢弃帧。
source-id 此接收器必须使用其缓冲区的源的ID。源ID包含在源组名称中。例如,对于组[source1]source id=1。
container 用于文件保存的容器。仅对类型=3有效。 1: MP4标准 2: MKV公司
codec The encoder to be used to save the file. 1: H.264 (hardware) 2: H.265 (hardware) bitrate 用于编码的比特率,以位/秒为单位。对于类型=3和4有效。
output-file Pathname of the output encoded file. Only valid for type=3.
width 渲染器的宽度(像素)width=1920
offset-x 渲染器窗口的水平偏移(像素)
iframeinterval 编码帧内发生频率

[property]

Application Customization 定制
您可以创建自己的模型。必须在nvinfer配置文件的[property]组中指定适用的配置参数
必须指定的配置参数包括:

# Following properties are mandatory when engine files are not specified:
#   int8-calib-file(Only in INT8)
#   Caffemodel mandatory properties: model-file, proto-file, output-blob-names
#   UFF: uff-file, input-dims, uff-input-blob-name, output-blob-names
#   ONNX: onnx-file
#
# Mandatory properties for detectors:
#   num-detected-classes
#
# Optional properties for detectors:
#   enable-dbscan(Default=false), interval(Primary mode only, Default=0)
#   custom-lib-path,
#   parse-bbox-func-name
#
# Mandatory properties for classifiers:
#   classifier-threshold, is-classifier
#
# Optional properties for classifiers:
#   classifier-async-mode(Secondary mode only, Default=false)
#
# Optional properties in secondary mode:
#   operate-on-gie-id(Default=0), operate-on-class-ids(Defaults to all classes),
#   input-object-min-width, input-object-min-height, input-object-max-width,
#   input-object-max-height
#
# Following properties are always recommended:
#   batch-size(Default=1)
#
# Other optional properties:
#   net-scale-factor(Default=1), network-mode(Default=0 i.e FP32),
#   model-color-format(Default=0 i.e. RGB) model-engine-file, labelfile-path,
#   mean-file, gie-unique-id(Default=0), offsets, gie-mode (Default=1 i.e. primary),
#   custom-lib-path, network-mode(Default=0 i.e FP32)
#
# The values in the config file are overridden by values set through GObject
# properties.

[property]
gpu-id=0
net-scale-factor=0.0039215697906911373
#model-file=/opt/nvidia/deepstream/deepstream-4.0/samples/models/Primary_Detector/resnet10.caffemodel_b1_int8.engine
model-file=/opt/nvidia/deepstream/deepstream-4.0/samples/models/Primary_Detector/resnet10.caffemodel
proto-file=/opt/nvidia/deepstream/deepstream-4.0/samples/models/Primary_Detector/resnet10.prototxt
labelfile-path=/opt/nvidia/deepstream/deepstream-4.0/samples/models/Primary_Detector/labels.txt
int8-calib-file=/opt/nvidia/deepstream/deepstream-4.0/samples/models/Primary_Detector/cal_trt.bin
batch-size=1
network-mode=1
num-detected-classes=4
interval=0
gie-unique-id=1
output-blob-names=conv2d_bbox;conv2d_cov/Sigmoid

[class-attrs-all]
threshold=0.2
eps=0.2
group-threshold=1


自定义模型的CUDA引擎创建
DeepStream支持为非Caffe、UFF或ONNX格式或必须从TensorRT层api创建的模型创建tensort CUDA引擎。objectDetector_YoloV3示例应用程序显示了一个实现示例。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值