Skip to content

Commit

Permalink
Merge pull request #35 from albu/cutout
Browse files Browse the repository at this point in the history
Default probability for Cutout = 0.5
  • Loading branch information
albu committed Jul 24, 2018
2 parents e01d84a + a4f9aa4 commit 0772e72
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion albumentations/augmentations/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ class Cutout(ImageOnlyTransform):
"""

def __init__(self, num_holes=0, max_h_size=0, max_w_size=0, p=1.0):
def __init__(self, num_holes=0, max_h_size=0, max_w_size=0, p=0.5):
super(Cutout, self).__init__(p)
self.num_holes = num_holes
self.max_h_size = max_h_size
Expand Down

0 comments on commit 0772e72

Please sign in to comment.