ImportError: cannot import name '_obtain_input_shape' from keras

前端 未结 5 2238
猫巷女王i
猫巷女王i 2020-12-16 10:05

In Keras,

I\'m trying to import _obtain_input_shape as follows:

from keras.applications.imagenet_utils import _obtain_input_shape
         


        
5条回答
  •  时光说笑
    2020-12-16 10:56

    This issue occured because of the version of keras.

    In my case, I was downgrade keras 2.2.2 to 2.2.0, and the problem was solved.

提交回复
热议问题