title: import efficientnet.keras as efn - AttributeError: module 'keras.utils' has no attribute 'generic_utils'
body: <p>I am trying to use EfficientNet from <a href="https://github.com/qubvel/segmentation_models" rel="nofollow noreferrer">https://github.com/qubvel/segmentation_models</a>.</p>
  <p>So, I installed this via pip:</p>
  <pre><code>!pip install git+https://github.com/qubvel/segmentation_models
  </code></pre>
  <p>Then I tried to import <code>efficientnet.keras</code>:</p>
  <pre><code>import efficientnet.keras as efn
  </code></pre>
  <p>And got this error:</p>
  <pre><code>---------------------------------------------------------------------------
  AttributeError                            Traceback (most recent call last)
  &lt;ipython-input-57-61d736540c72&gt; in &lt;module&gt;()
  ----&gt; 1 import efficientnet.keras as efn
  
  1 frames
  /usr/local/lib/python3.6/dist-packages/efficientnet/__init__.py in init_keras_custom_objects()
       69     }
       70 
  ---&gt; 71     keras.utils.generic_utils.get_custom_objects().update(custom_objects)
       72 
       73 
  
  AttributeError: module 'keras.utils' has no attribute 'generic_utils'
  </code></pre>
  <p>This is very strange since it worked yesterday without any problems and today in one notebook as well but in the other ones I got this error. Does anyone know what to do?</p>