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

num_classes not having an effect when training on custom data #168

Open
picosankaricpp opened this issue Feb 17, 2025 · 0 comments
Open

Comments

@picosankaricpp
Copy link

I've changed custom_detection.yml to have
num_classes: 2 # your dataset classes
remap_mscoco_category: False

I'm trying to train on custom data with one class. I train using this command: $env:CUDA_VISIBLE_DEVICES="0"; python train.py -c configs/dfine/custom/objects365/dfine_hgnetv2_s_obj2custom.yml --use-amp --seed=0 -t dfine_s_obj2coco.pth.
When I export the model to onnx, it outputs confidence scores for 300 classes. Is this expected or am I missing something in my training?

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

1 participant