-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
New utility feature class filtering for Object Detectors 2D #467
Conversation
…nference demo for yolov5.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you @katdimitris, very nice job. I have added some comments. Mainly handling nanodet img/input is a bit problematic.
src/opendr/perception/object_detection_2d/utils/class_filter_wrapper.py
Outdated
Show resolved
Hide resolved
projects/python/perception/object_detection_2d/yolov5/filtered_inference_demo.py
Outdated
Show resolved
Hide resolved
projects/python/perception/object_detection_2d/yolov5/filtered_inference_demo.py
Outdated
Show resolved
Hide resolved
projects/python/perception/object_detection_2d/yolov5/filtered_inference_demo.py
Outdated
Show resolved
Hide resolved
projects/python/perception/object_detection_2d/yolov5/filtered_inference_demo.py
Outdated
Show resolved
Hide resolved
src/opendr/perception/object_detection_2d/utils/class_filter_wrapper.py
Outdated
Show resolved
Hide resolved
src/opendr/perception/object_detection_2d/utils/class_filter_wrapper.py
Outdated
Show resolved
Hide resolved
src/opendr/perception/object_detection_2d/utils/class_filter_wrapper.py
Outdated
Show resolved
Hide resolved
…rapper.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
…_inference_demo.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
…_inference_demo.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
…_inference_demo.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
…_inference_demo.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
…rapper.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
…rapper.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you @katdimitris!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
…u#467) * Added initial version of class filtering * added parameter conditions for all implemented learners * added parameter conditions for all implemented learners * final implementation of class filtering for object detectors. added inference demo for yolov5. * correction inference demo for yolov5. * small fixes to pass tests * added License Copyright to pass test * Update src/opendr/perception/object_detection_2d/utils/class_filter_wrapper.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/python/perception/object_detection_2d/yolov5/filtered_inference_demo.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/python/perception/object_detection_2d/yolov5/filtered_inference_demo.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/python/perception/object_detection_2d/yolov5/filtered_inference_demo.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/python/perception/object_detection_2d/yolov5/filtered_inference_demo.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update src/opendr/perception/object_detection_2d/utils/class_filter_wrapper.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update src/opendr/perception/object_detection_2d/utils/class_filter_wrapper.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Removed filtering support for RetinaFace, since it exclusively detects face objects. --------- Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
Implemented class filtering for object detectors using a wrapper. The wrapper accepts a Learner object and a list of desired classes for detection. These classes should be within the set that the learner is capable of detecting. An inference demo for YOLOv5 is also available.
Closes #464.