Skip to content

Commit

Permalink
random erasing
Browse files Browse the repository at this point in the history
  • Loading branch information
yusuke-a-uchida committed Aug 11, 2018
1 parent 2e9daf6 commit febcfa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions age_estimation/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ def get_transform_func():
p.random_color(probability=1, min_factor=0.8, max_factor=1.2)
p.random_contrast(probability=1, min_factor=0.8, max_factor=1.2)
p.random_brightness(probability=1, min_factor=0.8, max_factor=1.2)
p.random_erasing(probability=0.5, rectangle_area=0.2)

def transform_image(image):
image = [Image.fromarray(image)]
Expand Down

0 comments on commit febcfa7

Please sign in to comment.