Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change number of classes to detect #46

Closed
Rajkumarsaswamy opened this issue Mar 27, 2021 · 2 comments
Closed

change number of classes to detect #46

Rajkumarsaswamy opened this issue Mar 27, 2021 · 2 comments

Comments

@Rajkumarsaswamy
Copy link

i want only "person" to be detected by yolov4

so i modified label.txt and config_infer_primary.txt num-detected-classes=1

i should also change in nvdsparsebbox_Yolo.cpp right, where is the variable to change?

@marcoslucianops
Copy link
Owner

With my files, you don't need to edit nvdsparsebbox_Yolo.cpp file. But you can't change label.txt file and num-detected-classes from one model, it will not work. By using default YOLOv4 model, you need to use all 80 classes and filter classes by using filter-out-class-ids in config_infer_primay.txt file (see NVIDIA docs: https://docs.nvidia.com/metropolis/deepstream/dev-guide/text/DS_plugin_gst-nvinfer.html)

@Rajkumarsaswamy
Copy link
Author

thank you, that satified my need. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants