Coming soon: We’re working on a brand new, revamped Community experience. Want to receive updates? Sign up now!

0 votes

So i've completed all the image classification deep learning tutorials at Now, i want to work with VGGface because my data are exclusively face pictures. However the Keras VGGFace repo only works with Keras 2.1.1. If i try to use the repo with an updated keras i'll get "ImportError: cannot import name '_obtain_input_shape'". Any work arounds for these kind of problems? 


Thanks in advance, 

reopened by

2 Answers

+1 vote
Best answer

Hi Benoni, 

You can create an environment in DSS with the required version of Keras, in order for the dependencies to work.

Then, the snippet as per their documentation works inside a notebook or Python script setup on the environment.

I hope this helps!

selected by
Thanks! I was trying with keras_vggface only and had keras related problems. Never thought of adding keras==2.1.1 there :)
+1 vote

Hi there :)

I think this SO thread can help,, you can probably amend the code of the file "keras_vggface/" of the library you are importing to solve your problem.

1,337 questions
1,362 answers
11,912 users

©Dataiku 2012-2018 - Privacy Policy