From c66efcb58fa53718c43fa1d509527407f5e7cc36 Mon Sep 17 00:00:00 2001 From: tomrink <rink@ssec.wisc.edu> Date: Wed, 13 Sep 2023 13:44:53 -0500 Subject: [PATCH] snapshot... --- modules/util/augment.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/modules/util/augment.py b/modules/util/augment.py index 9747836f..7c05cb50 100644 --- a/modules/util/augment.py +++ b/modules/util/augment.py @@ -3,17 +3,8 @@ from functools import partial import tensorflow as tf -def augment_image( - brightness_delta=0.05, - contrast_factor=[0.7, 1.3], - saturation=[0.6, 1.6]): +def augment_image(): """ Helper function used for augmentation of images in the dataset. - Args: - brightness_delta: maximum value for randomly assigning brightness of the image. - contrast_factor: list / tuple of minimum and maximum value of factor to set random contrast. - None, if not to be used. - saturation: list / tuple of minimum and maximum value of factor to set random saturation. - None, if not to be used. Returns: tf.data.Dataset mappable function for image augmentation """ -- GitLab