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

Add Cutout augmenter #531

Merged
merged 1 commit into from Jan 6, 2020
Merged

Add Cutout augmenter #531

merged 1 commit into from Jan 6, 2020

Conversation

aleju
Copy link
Owner

@aleju aleju commented Dec 20, 2019

Add Cutout augmenter

This patch adds functionality to apply cutout augmentation, as described in the corresponding paper.

The implementation of this patch uses a relative cutout size and position (rather than absolute one as in the paper's implementation). Furthermore, RGB fill values are supported (paper implementation always drops to mean value) and replacing cutout regions with gaussian noise (paper only supports constant values).

  • Add imgaug.augmenters.arithmetic.cutout()
  • Add imgaug.augmenters.arithmetic.cutout_()
  • Add imgaug.augmenters.arithmetic.Cutout augmenter

@codecov-io
Copy link

codecov-io commented Dec 20, 2019

Codecov Report

Merging #531 into master will increase coverage by 0.04%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master     #531      +/-   ##
==========================================
+ Coverage   96.38%   96.42%   +0.04%     
==========================================
  Files          37       37              
  Lines       13508    13641     +133     
==========================================
+ Hits        13019    13152     +133     
  Misses        489      489

This patch adds functionality to apply
cutout augmentation, as described in the
corresponding paper.

The implementation of this patch uses a
relative cutout size and position (rather
than absolute one as in the paper's
implementation). Furthermore, RGB fill
values are supported (paper implementation
always drops to mean value) and replacing
cutout regions with gaussian noise
(paper only supports constant values).

* Add `imgaug.augmenters.arithmetic.cutout()`
* Add `imgaug.augmenters.arithmetic.cutout_()`
* Add `imgaug.augmenters.arithmetic.Cutout`
  augmenter
@aleju aleju merged commit 34f230a into master Jan 6, 2020
@aleju aleju deleted the cutout branch January 6, 2020 13:25
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.

None yet

2 participants