Filter-out-class-ids not working with yolo?

• Hardware Platform (Jetson / GPU)
Jetson Xavier NX and AGX
• DeepStream Version
• JetPack Version (valid for Jetson only)
• Issue Type( questions, new requirements, bugs)

Hello nvidia family and friends,

I have a piece of code where I detect people. To that end I used Peoplenet, that is trained to recognise 3 classes: Person, Bag and Face.
I only need to detect people and I was successfully able to configure things to only detect people using the filter-out-class-ids property.
However, Peoplenet only has an 80-86% accuracy in detecting people, so I thought I would give a try and use yolov5.
After many struggles I was able to use it, but the yolo network has 80 classes.
The filter-out-class-ids property doesn’t seem to work in this case. It’s all or nothing, whatever class ids I put in the list.

Would someone have any idea of how I could make the yolo work to only detect the
person class ?

Thank you very much in advance for your esteemed help.



We want to reproduce this issue in our environment for checking.
Would you mind sharing the model and corresponding configure/source to run YOLOv5?



Sure, with pleasure.
Not being too sure how to share it with you, I created a tar.gz archive that can be downloaded here:

Please let me know if you prefer another mean for sharing the project.

However, there are a few things to take into account, but it should not be too complicated to modify.
This project controls a Gimbal in order for the camera to track people. You will probably have to comment the parts related to that.
Also, this project is made to use an RTSP source, and there is a fonction that runs at the beginning of the main function to set the network card accordingly. You will also have to comment that part out.
Apart from that it should be straight-forward.

In the config file I commented out the filter-out-class-ids property. If I uncomment it, I don’t see any class being recognised, it’s like all or nothing. I also tried with leaving 1 or 2 classes.
The current state of the config file may not be optimised, I think I filtered out every classes except the first two ones, as I was running a few tests.

Please let me know if you have questions.

Thank you very much for your help !


Thanks a lot.

We are checking this internally.
Will share more information with you later.


We try your source but meet some problems like a missing source named common.
Would you mind modifing the sample into a standalone application so we can check the issue directly?


Hello @AastaLLL,

The ‘common’ resource is the one from the deepstream_python_apps repository (
I forgot to specify that part :-p
My app was developped based on one of the provided examples, and I had it placed in the apps directory.
If this is not enough, I will provide a standalone app, but I will unfortunately not have time to do it before Saturday.



Do you have time to generate a standalone app this week?