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

Fix multilabel widerface import #7266

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

amjadsaadeh
Copy link

@amjadsaadeh amjadsaadeh commented Dec 14, 2023

Motivation and context

In #7265 I already mentioned a bug when importing the WiderFace dataset, caused by multiple labels within the dataset. This pull request is intended to fix this bug.

How has this been tested?

Checklist

  • I submit my changes into the develop branch
  • [ ] I have created a changelog fragment
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • I have linked related issues (see GitHub docs)
  • [ ] I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

Whenever a dataset in widerface format with multiple
labels were imported, a frame matching execption has
been caused in the importer. This commit fixes it by
using additional fuzzy matching, which has been also
used in fining the root hint.
@amjadsaadeh amjadsaadeh force-pushed the fix-multilabel-widerface-import branch from 730b88c to 6664dc6 Compare December 14, 2023 10:32
@amjadsaadeh amjadsaadeh marked this pull request as ready for review December 14, 2023 12:21
@zhiltsov-max zhiltsov-max self-assigned this Dec 14, 2023
@zhiltsov-max
Copy link
Contributor

Hi, thank you for the contribution! I think it's an interesting addition to the frame matching function. We need to double check the new behavior in the corner cases such as:

  • several images have the same filename but lie in different directories (e.g. a/img.jpg, b/img.jpg)
  • flat structure is uploaded into a task with an image tree (e.g. img1.jpg.anns, img2.jpg.anns -> a/img1.jpg, b/img2.jpg)
    etc.

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

Successfully merging this pull request may close these issues.

None yet

2 participants