8000 Vectorize CropAndPad by aleju · Pull Request #619 · aleju/imgaug · GitHub
[go: up one dir, main page]

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

Vectorize CropAndPad #619

Merged
merged 2 commits into from
Apr 21, 2020
Merged

Vectorize CropAndPad #619

merged 2 commits into from
Apr 21, 2020

Conversation

aleju
Copy link
Owner
@aleju aleju commented Feb 18, 2020

This patch vectorizes parts of CropAndPad, especially the
sampling process, leading to an improved performance for large
batches.

Previously, cropping an image below a height and/or width of
1 would be prevented by CropAndPad and a warning was
raised if it was tried. That warning was now removed, but
height/width of at least 1 is still ensured.

This patch vectorizes parts of `CropAndPad`, especially the
sampling process, leading to an improved performance for large
batches.

Previously, cropping an image below a height and/or width of
`1` would be prevented by `CropAndPad` *and* a warning was
raised if it was tried. That warning was now removed, but
height/width of at least `1` is still ensured.
@codecov-io
Copy link
codecov-io commented Feb 18, 2020

Codecov Report

Merging #619 into master will increase coverage by 0.06%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #619      +/-   ##
==========================================
+ Coverage   96.35%   96.41%   +0.06%     
==========================================
  Files          41       41              
  Lines       14670    15137     +467     
==========================================
+ Hits        14134    14593     +459     
- Misses        536      544       +8

@aleju aleju merged commit 9e95a3f into master Apr 21, 2020
@aleju aleju deleted the faster_crop branch April 21, 2020 17:26
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.

2 participants
0