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

How can I train only the person class? #286

Open
alsrlwjs56 opened this issue Mar 25, 2024 · 1 comment
Open

How can I train only the person class? #286

alsrlwjs56 opened this issue Mar 25, 2024 · 1 comment

Comments

@alsrlwjs56
Copy link

I am using cocodataset,
I don't want to train any other classes besides humans.

How do I train only person classes with yolov9?
yolov9-c.yaml > Changed nc: 80 to nc: 1.
coco.yaml > names: Comment all except person
args --single-cls
Even if you change the above, train_batch still recognizes all classes as 0.

@TheMattBin
Copy link

maybe you can refer to #30 and check if it help

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