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] Skip invalud augmented polygons in ImgAugWrapper #1434

Merged
merged 2 commits into from
Oct 9, 2022

Conversation

gaotongxiao
Copy link
Collaborator

Fixes #1426

Motivation

Sometimes ImgAug could produce some invalid polygons after applying augmentations to a polygon set and may interfere with the training process. This PR checks and skips every invalid polygon and can alleviate this issue.

@gaotongxiao gaotongxiao linked an issue Oct 9, 2022 that may be closed by this pull request
@gaotongxiao gaotongxiao requested a review from xinke-wang October 9, 2022 06:20
@xinke-wang
Copy link
Collaborator

lint failed?

@gaotongxiao gaotongxiao merged commit 769d845 into open-mmlab:dev-1.x Oct 9, 2022
@gaotongxiao gaotongxiao deleted the fix_imgaug_wrapper branch October 9, 2022 08:11
Mekacher-Anis pushed a commit to Mekacher-Anis/mmocr that referenced this pull request Oct 11, 2022
* [Fix] Skip invalud augmented polygons in ImgAugWrapper

* fix precommit
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.

dev-1.x版本,用dbnet训练icdar2017mlt的问题
3 participants