-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Remove class list dependency for roboflow to detection conversion #399
Conversation
remoed class_list arg from core.py file
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.
Hello there, thank you for opening an PR ! 🙏🏻 The team was notified and they will get back to you asap.
Hi @akashAD98 👋 , thank you for contributing to
|
@SkalskiP @capjamesg This might generate conflicts in roboflow server. Please have a look. |
@akashAD98 I have fixed class id conversion bug. |
@SkalskiP If we want to accept this PR then please fix the tests. |
Hi, @akashAD98 👋🏻! Could you accept the CLA? I'll take care of tests once you do it. |
@hardikdava i accepted the CLA |
Updated the prediction parsing logic in supervision/detection/utils.py and supervision/detection/core.py to use 'class_id' instead of 'class' names. Adapted tests in test/detection/test_utils.py accordingly to reflect the same change.
@akashAD98 and @hardikdava, I fixed the tests and tested it on example roboflow/inference result, and everything looks fine. We can merge! |
thanks @SkalskiP |
@akashAD98, thanks for help! |
remoed class_list arg from core.py file
Description
No need to ask user for providing
class_list
simplify the sv.Detections.from_roboflow API and remove extra argument.
solved this issue : #394
Please delete options that are not relevant.
Docs