title: ImportError: cannot import name convert_all_kernels_in_model
body: <p>I am trying to use ImageAI’s model training to train an AI model. </p>
  
  <p>This is the code:</p>
  
  <pre><code> from imageai.Prediction.Custom import ModelTraining
   model_trainer = ModelTraining()
   model_trainer.setModelTypeAsResNet()
   model_trainer.setDataDirectory("idenprof")
   model_trainer.trainModel(num_objects=2, num_experiments=3, enhance_data=True, 
   batch_size=32, show_network_summary=True)
  </code></pre>
  
  <p>This is the error I get when running:</p>
  
  <pre><code>Traceback (most recent call last):
    File ".../FirstTraining.py", line 1, in &lt;module&gt;
      from imageai.Prediction.Custom import ModelTraining
    File ".../lib/python2.7/site-packages/imageai/Prediction/Custom/__init__.py", line 4, in &lt;module&gt;
      from ..DenseNet.densenet import DenseNetImageNet121
    File ".../PycharmProjects/bonez/venv/lib/python2.7/site-packages/imageai/Prediction/DenseNet/densenet.py", line 21, in &lt;module&gt;
      from tensorflow.python.keras.utils import convert_all_kernels_in_model
  ImportError: cannot import name convert_all_kernels_in_model
  </code></pre>
  
  <p>I have searched all over but I could not find the same issue or a way to solve the problem. I have the following dependencies installed: Tensorflow, OpenCV, Keras, and ImageAI. </p>