forked from aleju/imgaug
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
3 changed files
with
290 additions
and
138 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
changelogs/master/improved/20200217_vectorize_cropandpad.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Vectorize `CropAndPad` #619 | ||
|
||
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 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
Oops, something went wrong.