def color(image, factor):
    'Equivalent of PIL Color.'
    degenerate = tf.image.grayscale_to_rgb(tf.image.rgb_to_grayscale(image))
    return blend(degenerate, image, factor)
Equivalent of PIL Color.
def color(image, factor):
    
    degenerate = tf.image.grayscale_to_rgb(tf.image.rgb_to_grayscale(image))
    return blend(degenerate, image, factor)