-
Notifications
You must be signed in to change notification settings - Fork 7.8k
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
upgrade to numpy 2.0 and remove imgaug #13937
Merged
GreatV
merged 8 commits into
PaddlePaddle:main
from
GreatV:upgrade_numpy_2.0_remove_imgaug
Nov 6, 2024
Merged
upgrade to numpy 2.0 and remove imgaug #13937
GreatV
merged 8 commits into
PaddlePaddle:main
from
GreatV:upgrade_numpy_2.0_remove_imgaug
Nov 6, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
GreatV
changed the title
upgrade to numpy 2.0 and remove imgaug
[WIP] upgrade to numpy 2.0 and remove imgaug
Oct 2, 2024
GreatV
changed the title
[WIP] upgrade to numpy 2.0 and remove imgaug
upgrade to numpy 2.0 and remove imgaug
Nov 5, 2024
Liyulingyue
approved these changes
Nov 5, 2024
jzhang533
approved these changes
Nov 5, 2024
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.
👍🏻 👍🏻 👍🏻
LGTM
BTW: we may need to remove library six after this PR landed, as we no longer need to support python2 any more.
there are several code snippets requiring six library, but should be easy to update.
@mmglove 好的,是的,我后面看看。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request includes significant changes to the augmentation pipeline, dependencies, and testing framework. The main updates involve replacing
imgaug
withalbumentations
, introducing a custom resize transformation, and adding comprehensive tests for the new augmentation behavior.Augmentation Pipeline Updates:
imgaug
withalbumentations
for image augmentation, ensuring compatibility by preventing automatic updates in Albumentations (ppocr/data/imaug/iaa_augment.py
).ImgaugLikeResize
, a custom resize transformation to mimicimgaug
behavior with scaling (ppocr/data/imaug/iaa_augment.py
).AugmenterBuilder
to map commonimgaug
transformations toalbumentations
equivalents and handle custom augmenter arguments (ppocr/data/imaug/iaa_augment.py
).Dependency Updates:
imgaug
and addedalbumentations
andalbucore
to the dependencies to support the new augmentation library (pyproject.toml
). [1] [2]Testing Enhancements:
tests/test_iaa_augment.py
with comprehensive tests for the new augmentation pipeline, including fixtures for sample images and polygons, and various test cases for different augmentation scenarios (tests/test_iaa_augment.py
).Training Log:
training log for ppocrv3
training log for ppocrv4
train_2.log
Related PR: