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

Can RTDETR allow single-class( i.e. 1 category only) object detection? #8430

Closed
1 task done
foresee-ai opened this issue Jul 12, 2023 · 4 comments
Closed
1 task done
Assignees
Labels
question Further information is requested status/close

Comments

@foresee-ai
Copy link

问题确认 Search before asking

  • 我已经搜索过问题,但是没有找到解答。I have searched the question and found no related answer.

请提出你的问题 Please ask your question

After I modified RTDETR's code and used AGORA (head only) dataset's annotation, my code can be trained, evaluated, and tested. But the head detection's evaluation mAP is very bad, only 0.002 after 75 epoch training. I am suspecting if Hungarian matcher can be the problem. From DETR's paper, DETR uses Hungarian Matcher to pick proper prediction candidates associated with the ground truth targets. The cost function for Hungarian Matcher depends on the class, bbox, and giou losses. But here the class loss seems not working properly and leads to the low mAP evaluation. Do you have any ideas to help solve the problem? Thank you!

Heidi

@foresee-ai foresee-ai added the question Further information is requested label Jul 12, 2023
@lyuwenyu
Copy link
Collaborator

rtdetr fix a bug #8409, you can try lastest ppdet or original exp code https://github.com/lyuwenyu/RT-DETR

@foresee-ai
Copy link
Author

Thank you very much for the quick response. I've checked bug #8409, and found gt_score occurs in following 4 files, rtdetr_paddle/ppdet/data/source/voc.py, rtdetr_paddle/ppdet/data/transform/batch_operators.py, rtdetr_paddle/ppdet/modeling/transformers/utils.py, and ‎rtdetr_paddle/ppdet/data/transform/operators.py. Since I don't use VOC's data format, the first file is not relevant. So I'll check the rest files to see how to modify the code.

@john09282922
Copy link

Thank you very much for the quick response. I've checked bug #8409, and found gt_score occurs in following 4 files, rtdetr_paddle/ppdet/data/source/voc.py, rtdetr_paddle/ppdet/data/transform/batch_operators.py, rtdetr_paddle/ppdet/modeling/transformers/utils.py, and ‎rtdetr_paddle/ppdet/data/transform/operators.py. Since I don't use VOC's data format, the first file is not relevant. So I'll check the rest files to see how to modify the code.

Hi, did you fix the problem using single class, if you fix, plz let me know which part I should have to be changed

@foresee-ai
Copy link
Author

foresee-ai commented Aug 1, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested status/close
Projects
None yet
Development

No branches or pull requests

3 participants