Commit 19a49ae3 authored by Fan Yang's avatar Fan Yang Committed by A. Unique TensorFlower
Browse files

Internal change

PiperOrigin-RevId: 380243629
parent 7793eb27
...@@ -1205,7 +1205,8 @@ class RandAugment(ImageAugment): ...@@ -1205,7 +1205,8 @@ class RandAugment(ImageAugment):
self.magnitude = float(magnitude) self.magnitude = float(magnitude)
self.cutout_const = float(cutout_const) self.cutout_const = float(cutout_const)
self.translate_const = float(translate_const) self.translate_const = float(translate_const)
self.prob_to_apply = prob_to_apply self.prob_to_apply = (
float(prob_to_apply) if prob_to_apply is not None else None)
self.available_ops = [ self.available_ops = [
'AutoContrast', 'Equalize', 'Invert', 'Rotate', 'Posterize', 'Solarize', 'AutoContrast', 'Equalize', 'Invert', 'Rotate', 'Posterize', 'Solarize',
'Color', 'Contrast', 'Brightness', 'Sharpness', 'ShearX', 'ShearY', 'Color', 'Contrast', 'Brightness', 'Sharpness', 'ShearX', 'ShearY',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment