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

Cherrypick ImageAugmetation related change to R2.9 #16454

Merged
merged 10 commits into from
Apr 22, 2022
3 changes: 3 additions & 0 deletions keras/layers/preprocessing/image_preprocessing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,9 @@ def __init__(self, factor, value_range=(0, 255), seed=None, **kwargs):
def augment_image(self, image, transformation=None):
return self._brightness_adjust(image, transformation['rgb_delta'])

def augment_label(self, label, transformation=None):
return label

def get_random_transformation(self,
image=None,
label=None,
Expand Down