code: def preprocess(net, image):
      '''
      convert to Caffe input image layout
      '''
      return np.float32(np.rollaxis(image, 2)[::-1]) - net.transformer.mean["data"f preprocess(net, image):
      '''
      convert to Caffe input image layout
      '''
      return np.float32(np.rollaxis(image, 2)[::-1]) - net.transformer.mean["data"]
docs: convert to Caffe input image layout