You didn’t set the yolo model in the configuration file.
Please refer to DeepStream SDK FAQ - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums for how to configure the gst-nvinfer with your model.
As to our experience, you need to customize the yolov8 postprocessing function by yourself.