ImportError: cannot import name '_obtain_input_shape' from keras

前端 未结 5 2359
猫巷女王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:42

    keras_applications.imagenet_utils is deprecated

    Traceback (most recent call last): File "inception_v3.py", line 36, in from keras_applications.imagenet_utils import _obtain_input_shape ModuleNotFoundError: No module named 'keras_application

提交回复
热议问题