The github yolo https://github.com/NVIDIA-AI-IOT/deepstream_reference_apps/tree/master/yolo was working on DS3 and has not been updated to DS4.0.
Instead of that, All yolo sample code has been added into DS4 SDK. so please download DeepStreamSDK tar ball and uncompress that to get the source code. Follow README in that directory to build.
Regarding Yolo, make sure you build libnvdsinfer_custom_impl_Yolo.so successfully.
I didn’t tried Nano. since osd failed in your side, you may need check DeepStreamSDK4 installed correctly and DS3 removed. Have you tried other samples(FasterRCNN/SSD).
you may need $gst-inspect-1.0 nvdsosd to check osd plugin installed.
I checked libnvdsinfer_custom_impl_Yolo.so is build successfully, DS4 and osd plugin are installed correctly. here are my config files : config_infer_primary_yoloV3.txt
[tiled-display]
enable=1
rows=1
columns=1
width=1280
height=720
gpu-id=0
#(0): nvbuf-mem-default - Default memory allocated, specific to particular platform
#(1): nvbuf-mem-cuda-pinned - Allocate Pinned/Host cuda memory, applicable for Tesla
#(2): nvbuf-mem-cuda-device - Allocate Device cuda memory, applicable for Tesla
#(3): nvbuf-mem-cuda-unified - Allocate Unified cuda memory, applicable for Tesla
#(4): nvbuf-mem-surface-array - Allocate Surface Array memory, applicable for Jetson
nvbuf-memory-type=0
[source0]
enable=1
#Type - 1=CameraV4L2 2=URI 3=MultiURI
type=3
uri=file:"http://sc18e62d.rd.francetelecom.fr/img/video.mpeg"
num-sources=1
gpu-id=0
# (0): memtype_device - Memory type Device
# (1): memtype_pinned - Memory type Host Pinned
# (2): memtype_unified - Memory type Unified
cudadec-memtype=0
[sink0]
enable=1
#Type - 1=FakeSink 2=EglSink 3=File
type=2
sync=0
source-id=0
gpu-id=0
nvbuf-memory-type=0
[osd]
enable=1
gpu-id=0
border-width=1
text-size=15
text-color=1;1;1;1;
text-bg-color=0.3;0.3;0.3;1
font=Serif
show-clock=0
clock-x-offset=800
clock-y-offset=820
clock-text-size=12
clock-color=1;0;0;0
nvbuf-memory-type=0
[streammux]
gpu-id=0
##Boolean property to inform muxer that sources are live
live-source=0
batch-size=1
##time out in usec, to wait after the first buffer is available
##to push the batch even if the complete batch is not formed
batched-push-timeout=40000
## Set muxer output width and height
width=1920
height=1080
##Enable to maintain aspect ratio wrt source, and allow black borders, works
##along with width, height properties
enable-padding=0
nvbuf-memory-type=0
# config-file property is mandatory for any gie section.
# Other properties are optional and if set will override the properties set in
# the infer config file.
[primary-gie]
enable=1
gpu-id=0
#model-engine-file=model_b1_int8.engine
labelfile-path=/home/hmaied/Projet/deepstream_reference_apps/yolo/data/labels.txt
batch-size=1
#Required by the app for OSD, not a plugin property
bbox-border-color0=1;0;0;1
bbox-border-color1=0;1;1;1
bbox-border-color2=0;0;1;1
bbox-border-color3=0;1;0;1
#interval=0
gie-unique-id=1
nvbuf-memory-type=0
config-file=config_infer_primary_yoloV3.txt
[tests]
file-loop=0
I don’t think this is yolo sample issues since the log didn’t start gst nvinfer plugin yet.
you may need try default deepstream-app on default config files to isolate the issue.
e.g.
$ deepstream-app -c source4_1080p_dec_infer-resnet_tracker_sgie_tiled_display_int8.txt
$ deepstream-app -c source8_1080p_dec_infer-resnet_tracker_tiled_display_fp16_nano.txt
for [source0]=>uri, I guess you just put as an example. If you really use http I’m not sure this has been tested. you may try a local video first.
I tested deepstream-app and it works. However, I still have the initial error (‘NvDsObjectParams’ was not declared in this scope) with deepstream-yolo-app.
I have also a problem installing gst-yoloplugin-tegra :
~/deepstream_reference_apps/yolo/plugins/gst-yoloplugin-tegra/build$ make && sudo make install
[ 84%] Built target yolo-lib
Scanning dependencies of target gstnvyolo
[ 92%] Building CXX object CMakeFiles/gstnvyolo.dir/gstyoloplugin.cpp.o
In file included from /home/retd/deepstream_reference_apps/yolo/plugins/gst-yoloplugin-tegra/gstyoloplugin.cpp:26:0:
/home/retd/deepstream_reference_apps/yolo/plugins/gst-yoloplugin-tegra/gstyoloplugin.h:35:10: fatal error: nvbuf_utils.h: No such file or directory include “nvbuf_utils.h”
Yes, as I said, deepstream_reference_apps/yolo is not maintained anymore since yolo has been included into DS4.0 SDK. In this case, you don’t need build gst-yoloplugin anymore(I don’t think you can still compile that code. If so, there must be some DS3 libs/headers not cleaned). please download DS4.0SDK tar package and uncompress to check opt/nvidia/deepstream/deepstream-4.0/sources/objectDetector_Yolo/. Then follow README to run yolo sample.