keras-team / keras-applications

Reference implementations of popular deep learning models.
Other
2k stars 910 forks source link

Resnet50 : ImportError: cannot import name '_obtain_input_shape' #72

Closed andrewferlitsch closed 5 years ago

andrewferlitsch commented 5 years ago

I am getting an error on the import line below:

from keras.applications.imagenet_utils import _obtain_input_shape ImportError: cannot import name '_obtain_input_shape'

I did the latest pip install of keras and keras-applications. Still get the error.

pip install -U keras keras-applications

taehoonlee commented 5 years ago

@andrewferlitsch, the _obtain_input_shape is designed for internal only.