-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added transform "RandomCropFromBorders" and support for BBox in Elast…
…icTransform, GridDistortion, OpticalDistortion (#476) * Added transform "RandomCropFromBorders" * Added transform "RandomCropFromBorders" * Added support for BBox in ElasticTransform, GridDistortion, OpticalDistortion * Fix new line * Fix whitespace * Fix for empty mask in function bbox_for_mask * Small fix in bbox_for_mask function to prevent x_min == x_max and y_min == y_max * Update README.md * Renamed bbox_for_mask -> bbox_from_mask. Added function mask_from_bbox * Black reformat * Added description for crop_value, crop_top, crop_bottom, crop_left and crop_right parameters Co-authored-by: Eugene Khvedchenya <ekhvedchenya@gmail.com> Co-authored-by: Mikhail Druzhinin <dipetm@gmail.com>
- Loading branch information
1 parent
a8dc46e
commit 1cd328b
Showing
3 changed files
with
66 additions
and
3 deletions.
There are no files selected for viewing
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
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
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