title: AttributeError: 'function' object has no attribute 'preprocess_input'
body: <p>I want to try MobileNetV2's predictions. I always get an error message, but I don't know what to change.</p>
  
  <pre><code>import keras
  from keras import backend as K
  from keras.preprocessing.image import ImageDataGenerator
  from keras.preprocessing import image
  from keras.applications import imagenet_utils
  from keras.layers import Dense,GlobalAveragePooling2D
  from keras.applications.mobilenetv2 import decode_predictions
  from keras.applications.mobilenetv2 import MobileNetV2
  from keras.applications.mobilenetv2 import preprocess_input
  import numpy as np
  from IPython.display import Image
  from keras.optimizers import Adam
  
  mobilenet = MobileNetV2()
  
  def process_image(img_path):
      img = image.load_img(img_path, target_size=(224, 224))
      img_array = image.img_to_array(img)
      img_array = np.expand_dims(img_array, axis=0)
      pImg = MobileNetV2.preprocess_input(img_array)
      return pImg
  
  process_image(IMG_PATH)
  </code></pre>
  
  <p>This is the Error Message.</p>
  
  <pre><code>---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-29-6cdb09c1b552&gt; in &lt;module&gt;()
  ----&gt; 1 process_image('IMG_PATH')
  
  &lt;ipython-input-28-1b1187d4c25c&gt; in process_image(img_path)
        3     img_array = image.img_to_array(img)
        4     img_array = np.expand_dims(img_array, axis=0)
  ----&gt; 5     pImg = MobileNetV2.preprocess_input(img_array)
        6     return pImg
  
  AttributeError: 'function' object has no attribute 'preprocess_input'
  </code></pre>
  
  <p>Maybe someone can help me.</p>