Comments (8)
Could you share your environment version?
import tensorflow
print(tensorflow.__version__)
import keras
print(keras.__version__)
from deepface.
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.
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.
wow, thanks a lot for the very quick answer and help! i will test & watch it as soon as i have time.
from deepface.
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.
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.
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.
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)
- New api endpoint HOT 4
- [BUG]: license is not shown in pip package
- Add TFace & Anti-Spoofing models π HOT 3
- Which Billion-Scale Database is the best for Face Recognition Query? HOT 1
- [BUG]: The verify function in gunicorn is unavailable
- [BUG]: <Wrong display of height and width values ββin DeepFace.represent function> HOT 2
- [BUG]: x of facial area left and right eye seems to be swapped since version 0.0.90 HOT 8
- [BUG]: Models ArcFace, Dlib, and others are not working. VGG-Face is the only model working for me HOT 3
- [BUG]: Age of children detected wrong HOT 1
- [BUG]: tensorflow deprecation warning with tf-keras HOT 1
- [FEATURE]: Nix flake deployment mechanism HOT 3
- [FEATURE]: Face Recognition in an image filled with other people HOT 2
- FAU Detection HOT 1
- [BUG]: Intermittent Packet Type Mismatch Error in Long-Term Face Detection with DeepFace and MediaPipe "Graph has errors: Packet type mismatch on a calculator receiving from stream "image": ; Empty packets are not allowed for type: OneOf<::mediapipe::Image, ::mediapipe::ImageFrame, mediapipe::GpuBuffer>" HOT 1
- [More info from find method]: Find method should optionally return full face detection results HOT 3
- [BUG]: deepface "find" method runs very slowly (16 sec per iteration), unable to use gpu HOT 1
- [FEATURE]: Manual image_file to pkl_representation management HOT 5
- age & gender analysis HOT 1
- [DOC]: License of Facenet512 model. HOT 1
- [DOC]: YOLOv8 model HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepface.