How to draw mask by using yolov8-seg model in python

hello.I can’t answer you from a technical perspective, but when I was doing my experiment, due to a bug, I was able to achieve the effect you want. You can use tee+queue to perform two pgie inferences and then osd, and finally the sink will draw the results of the two inferences mixed together. You can take a look at my other question. There is a confusing bug by using multiple “nvinfer” in parallel by “tee” - Intelligent Video Analytics / DeepStream SDK - NVIDIA Developer Forums