-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
DetectionDataset merge fails when class name contains capital letter #1641
Comments
Hi @Suhas-G 👋 We'd like to treat classes with different capitalization as different classes. That is, "Animal" and "animal" are different. Right now I expect people to rename these manually inside Detections. However, adding a |
Hi @LinasKo, to treat classes with different capitalization as different classes, isn't it better to not call |
Are we calling that? If so, I believe we can remove it. |
Thanks @onuralpszr! @Suhas-G, would you mind testing out whether it works this time? You can install the pip install git+https://github.com/roboflow/supervision.git@develop |
Yes, it's working fine. Thanks |
Search before asking
Bug
Hello, thanks for this great library! I'm facing an issue while trying to merge 2 datasets when any of the class names contain a capital letter.
Error:
The issue stems from the
merge_class_lists function
atsupervision/supervision/dataset/utils.py
Line 53 in 37cacec
where the class names are converted to lower-case, but
build_class_index_mapping
keeps the class names as it is. For my use case, I was able to get around by removing the lower-case conversion.Environment
Minimal Reproducible Example
Example: I downloaded 2 roboflow datasets - https://universe.roboflow.com/cvlab-6un5p/cv-lab-kpdek and https://universe.roboflow.com/padidala-indhu-e1dhl/animals-gzsxr and tried to merge them
Additional
No response
Are you willing to submit a PR?
The text was updated successfully, but these errors were encountered: