Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keras version compatibility: Obtain_Input_shape Error #19

Open
Jamesswiz opened this issue Oct 25, 2018 · 1 comment
Open

Keras version compatibility: Obtain_Input_shape Error #19

Jamesswiz opened this issue Oct 25, 2018 · 1 comment

Comments

@Jamesswiz
Copy link

Tensorflow Version v1.11

Please replace this line with Tensorflow version you are using.

Keras Version v2.2.4

Please replace this line with Keras version you are using.

Keras-squeezenet Version v1.1

Please replace this line with Keras-squeezenet version you are using.

Bug reports:

cannot import name '_obtain_input_shape'
Can you suggest a workaround as I don't want to downgrade keras now

Code Sample:

I tried
from keras_applications.imagenet_utils import _obtain_input_shape

but it didn't worked too.

@chxy95
Copy link

chxy95 commented Nov 10, 2018

Tensorflow Version v1.11

Please replace this line with Tensorflow version you are using.

Keras Version v2.2.4

Please replace this line with Keras version you are using.

Keras-squeezenet Version v1.1

Please replace this line with Keras-squeezenet version you are using.

Bug reports:

cannot import name '_obtain_input_shape'
Can you suggest a workaround as I don't want to downgrade keras now

Code Sample:

I tried
from keras_applications.imagenet_utils import _obtain_input_shape

but it didn't worked too.

you don't need bother...
if you use the command 'pip install kears-squeezenet' to install, you will meet many troubles.
just use your version and copy the squeezenet.py file to import.
if your verison is keras2.2.4, then you modify the script
from 'from keras.applications.imagenet_utils import _obtain_input_shape'
to 'from keras_applications.imagenet_utils import _obtain_input_shape'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants