remove redundant prints in cifar input reader.
@@ -160,12 +160,10 @@ def cifar_tf_preprocess(inp, random_crop=True, random_flip=True, whiten=True,
image_size = 32
image = inp
if random_crop:
- print("Apply random cropping")
image = tf.image.resize_image_with_crop_or_pad(inp, image_size + 4,
image_size + 4)
image = tf.random_crop(image, [image_size, image_size, 3])
if random_flip:
- # log.info("Apply random flipping")
image = tf.image.random_flip_left_right(image)
# Brightness/saturation/constrast provides small gains .2%~.5% on cifar.
if br_sat_con:
@@ -173,6 +171,5 @@ def cifar_tf_preprocess(inp, random_crop=True, random_flip=True, whiten=True,
image = tf.image.random_saturation(image, lower=0.5, upper=1.5)
image = tf.image.random_contrast(image, lower=0.2, upper=1.8)
if whiten:
- # log.info("Apply whitening")
image = tf.image.per_image_standardization(image)
return image
