Git Product home page Git Product logo

Comments (8)

serengil avatar serengil commented on May 22, 2024

Could you share your environment version?

import tensorflow
print(tensorflow.__version__)
import keras
print(keras.__version__)

from deepface.

serengil avatar serengil commented on May 22, 2024

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.

input_shape = custom_model.layers[0].input_shape

if type(input_shape) == list:
	input_shape = input_shape[0][1:3]
else:
	input_shape = input_shape[1:3]

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.

from deepface.

serengil avatar serengil commented on May 22, 2024

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.

https://pypi.org/project/deepface/0.0.31/

from deepface.

maisen20 avatar maisen20 commented on May 22, 2024

wow, thanks a lot for the very quick answer and help! i will test & watch it as soon as i have time.

from deepface.

maisen20 avatar maisen20 commented on May 22, 2024

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!

from deepface.

serengil avatar serengil commented on May 22, 2024

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.

pip install opencv-python==3.4.4

from deepface.

maisen20 avatar maisen20 commented on May 22, 2024

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.

from deepface.

serengil avatar serengil commented on May 22, 2024

It's awesome. Thank you for analysis as well. I could not solve this problem if you haven't analyze it.

from deepface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.