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
IndexError: list index out of range (input_shape) #52
Comments
Could you share your environment version?
|
BTW, if I print the input shape of 1st layer of the model, then it returns (None, 224, 224, 3) but you got [(None, 224, 224, 3)]. I think this is because we are using different versions. Still, I'm going to add the following block in the next version of deepface. This will work in both returning types.
I'm running unit tests now. It is going to be live in half hour. You should install the package "pip install deepface==0.0.31" after it published. |
New version is on live. I think you can run deepface with this version even if you haven't change your tensorflow and keras versions. |
wow, thanks a lot for the very quick answer and help! i will test & watch it as soon as i have time. |
I tried deepface version 0.0.31, but I had problems with that too. The problem was with opencv, but seems to have nothing in common with my original problem in this issue. The opencv version I was using (OpenCV 4.1.2 ) did not work correctly with raspbian (see EdjeElectronics/TensorFlow-Object-Detection-on-the-Raspberry-Pi#67 (comment) ). So i installed opencv-python 3.4.6.27 (pip3 install opencv-python==3.4.6.27) and now it works. Thank you serengil! |
Please try the following version. That's exactly same version of mine. BTW, exception is same or changed? Could you share the new exception messages if it is changed.
|
Sorry, I had a typo in my answer. I meant "now it works". So everything is working now with opencv-python 3.4.6.27. |
It's awesome. Thank you for analysis as well. I could not solve this problem if you haven't analyze it. |
Hi and thank you for your work.
Unfortunately, it's not working for me. If I want to run the test, I get the output below. Somehow it seems to have problems loading the model. I have already reinstalled Keras twice (also with --no-cache-dir).
Can you help me please?
$ python3 test.py
Output:
Edit:
On first run, the file vgg_face_weights.h5 was successfully downloaded
I did some debugging and inserted following line for the output:
print(model.layers[0].input_shape)
Output:
[(None, 224, 224, 3)]
The text was updated successfully, but these errors were encountered: