def eval_image(image, height, width, scope=None):
 with tf.op_scope([image, height, width], scope, 'eval_image'):
  image = tf.image.central_crop(image, central_fraction=0.875)
  image = tf.expand_dims(image, 0)
  image = tf.image.resize_bilinear(image, [height, width], align_corners=False)
  image = tf.squeeze(image, [0])
  return image

def eval_image ( image , height , width , scope = None ) : with tf . op_scope ( [ image , height , width ] , scope , 'eval_image' ) : image = tf . image . central_crop ( image , central_fraction = 0.875 ) image = tf . expand_dims ( image , 0 ) image = tf . image . resize_bilinear ( image , [ height , width ] , align_corners = False ) image = tf . squeeze ( image , [ 0 ] ) return image
prepare one image for evaluation .