utils/tf_image_processing.py
def inv_preprocess(images, mean, name=None):
  """ Transforms the tensor from BGR to RGB and adds the mean. """
  with tf.name_scope(name, "InvProprocessImages", [images, mean]):
    mean = tf.convert_to_tensor(mean, dtype=tf.float32)
    images = bgr_to_rgb(images)
    images = images + mean
    return images
 Transforms the tensor from BGR to RGB and adds the mean. 
Transforms the tensor from BGR to RGB and adds the mean.
Transforms the tensor from BGR to RGB and adds the mean .
def inv_preprocess(images, mean, name=None):
  with tf.name_scope(name, "InvProprocessImages", [images, mean]):
    mean = tf.convert_to_tensor(mean, dtype=tf.float32)
    images = bgr_to_rgb(images)
    images = images + mean
    return images
def inv_preprocess ( images , mean , name = None ) : with tf . name_scope ( name , "InvProprocessImages" , [ images , mean ] ) : mean = tf . convert_to_tensor ( mean , dtype = tf . float32 ) images = bgr_to_rgb ( images ) images = images + mean return images
Transforms the tensor from BGR to RGB and adds the mean.
Transforms the tensor from BGR to RGB and adds the mean .
""" Transforms the tensor from BGR to RGB and adds the mean. """
images
mean
name