deepstream_app_config_yoloV5.txt 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. [application]
  2. enable-perf-measurement=1
  3. perf-measurement-interval-sec=5
  4. #gie-kitti-output-dir=streamscl
  5. [tiled-display]
  6. enable=0
  7. rows=2
  8. columns=2
  9. width=1280
  10. height=720
  11. gpu-id=0
  12. #(0): nvbuf-mem-default - Default memory allocated, specific to particular platform
  13. #(1): nvbuf-mem-cuda-pinned - Allocate Pinned/Host cuda memory, applicable for Tesla
  14. #(2): nvbuf-mem-cuda-device - Allocate Device cuda memory, applicable for Tesla
  15. #(3): nvbuf-mem-cuda-unified - Allocate Unified cuda memory, applicable for Tesla
  16. #(4): nvbuf-mem-surface-array - Allocate Surface Array memory, applicable for Jetson
  17. nvbuf-memory-type=0
  18. [source0]
  19. enable=1
  20. #Type - 1=CameraV4L2 2=URI 3=MultiURI
  21. type=2
  22. uri=file:/opt/nvidia/deepstream/deepstream-5.0/samples/streams/sample_1080p_h264.mp4
  23. #uri=file:/home/nvidia/Documents/5-Materials/Videos/0825.avi
  24. num-sources=2
  25. gpu-id=0
  26. # (0): memtype_device - Memory type Device
  27. # (1): memtype_pinned - Memory type Host Pinned
  28. # (2): memtype_unified - Memory type Unified
  29. cudadec-memtype=0
  30. [sink0]
  31. enable=1
  32. #Type - 1=FakeSink 2=EglSink 3=File
  33. type=2
  34. sync=0
  35. source-id=0
  36. gpu-id=0
  37. nvbuf-memory-type=0
  38. #1=mp4 2=mkv
  39. container=1
  40. #1=h264 2=h265
  41. codec=1
  42. output-file=yolov4.mp4
  43. [osd]
  44. enable=1
  45. gpu-id=0
  46. border-width=1
  47. text-size=12
  48. text-color=1;1;1;1;
  49. text-bg-color=0.3;0.3;0.3;1
  50. font=Serif
  51. show-clock=0
  52. clock-x-offset=800
  53. clock-y-offset=820
  54. clock-text-size=12
  55. clock-color=1;0;0;0
  56. nvbuf-memory-type=0
  57. [streammux]
  58. gpu-id=0
  59. ##Boolean property to inform muxer that sources are live
  60. live-source=0
  61. batch-size=4
  62. ##time out in usec, to wait after the first buffer is available
  63. ##to push the batch even if the complete batch is not formed
  64. batched-push-timeout=40000
  65. ## Set muxer output width and height
  66. width=1280
  67. height=720
  68. ##Enable to maintain aspect ratio wrt source, and allow black borders, works
  69. ##along with width, height properties
  70. enable-padding=0
  71. nvbuf-memory-type=0
  72. # config-file property is mandatory for any gie section.
  73. # Other properties are optional and if set will override the properties set in
  74. # the infer config file.
  75. [primary-gie]
  76. enable=1
  77. gpu-id=0
  78. model-engine-file=yolov5s.engine
  79. labelfile-path=labels.txt
  80. batch-size=1
  81. #Required by the app for OSD, not a plugin property
  82. bbox-border-color0=1;0;0;1
  83. bbox-border-color1=0;1;1;1
  84. bbox-border-color2=0;0;1;1
  85. bbox-border-color3=0;1;0;1
  86. gie-unique-id=1
  87. nvbuf-memory-type=0
  88. config-file=config_infer_primary_yoloV5.txt
  89. [tracker]
  90. enable=0
  91. tracker-width=512
  92. tracker-height=320
  93. ll-lib-file=/opt/nvidia/deepstream/deepstream-5.0/lib/libnvds_mot_klt.so
  94. [tests]
  95. file-loop=0