Comments (19)
could you print faceinfo directly?
from deepface.
Printing faceinfo directly works fine
Ill give u all of my code. Im writing a telegram bot that fetches faces from the chat and sends the user info about them
Sorry for deleting multiple comments leaked token accendatily
from deepface.
You have faceinfo but you cannot access the values in faceinfo right? I cannot open the web site link you shared.
Could you try to run the following code block and send me the printings.
from deepface import DeepFace
faceinfo = DeepFace.analyze("images/happy.jpeg")
print(resp_obj)
print("-------------------------")
for key, value in resp_obj.items():
print(key,": ",value)
from deepface.
It seems that you cannot process json objects. Please import json library as well.
from deepface.
Adding "import json" did not solve the problem. Also the code u send me above did not work.
resp_obj is undefined I assume u meant face info with it.
from deepface.
Right. Could you share the print screen when you run the following code block.
from deepface import DeepFace
faceinfo = DeepFace.analyze("images/happy.jpeg")
print(faceinfo)
print("-------------------------")
for key, value in faceinfo.items():
print(key,": ",value)
from deepface.
It seems to stop at the line: faceinfo = DeepFace.analyze("image/happy.jpeg")
EDIT: This is not a new project. This is the project where I've sent u the code for. The pastebin link is in a couple posts above this one
from deepface.
Hmm weird. I get the exact same error when I try to load a model with Keras inside a function.
from keras import load_model
model = load_model(emotions.hdf5)
this will also trow the error
from deepface.
Replace resp_obj to faceinfo please. Then share the print screen again.
from deepface.
I get the exact same error message. Removing try and exept gives something weird. It will just say: Actions to do: ['emotion', 'age', 'gender', 'race']. And then stay on it. No error message nothing. Endless this
from deepface.
what was your tf and keras versions?
could you reinstall them for the following versions
pip install tensorflow==1.9.0
pip install keras==2.2.0
from deepface.
I have stopped using keras. I wanted to use your library now. Also pip install tensorflow==1.9.0 does not work. There is no tensor flow 1.9.0?
from deepface.
Collecting tensorflow==1.9.0
Could not find a version that satisfies the requirement tensorflow==1.9.0 (from versions: 1.13.0rc1, 1.13.0rc2, 1.13.1, 1.13.2, 1.14.0rc0, 1.14.0rc1, 1.14.0, 1.15.0rc0, 1.15.0rc1, 1.15.0rc2, 1.15.0rc3, 1.15.0, 1.15.2, 1.15.3, 2.0.0a0, 2.0.0b0, 2.0.0b1, 2.0.0rc0, 2.0.0rc1, 2.0.0rc2, 2.0.0, 2.0.1, 2.0.2, 2.1.0rc0, 2.1.0rc1, 2.1.0rc2, 2.1.0, 2.1.1, 2.2.0rc0, 2.2.0rc1, 2.2.0rc2, 2.2.0rc3, 2.2.0rc4, 2.2.0)
No matching distribution found for tensorflow==1.9.0
from deepface.
Interesting. Here, you can check the tf 1.9.0
https://pypi.org/project/tensorflow/1.9.0/
Please try 1.13.1
from deepface.
1.13.1 did work. Im now installing it
from deepface.
Using tensor flow 1.13.1 worked!
I do get some errors
1:
/Users/Joris/PycharmProjects/TestMode/venv/lib/python3.7/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.
_np_qint8 = np.dtype([("qint8", np.int8, 1)])
2:
WARNING:tensorflow:From /Users/Joris/PycharmProjects/TestMode/venv/lib/python3.7/site-packages/tensorflow/python/ops/resource_variable_ops.py:435: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.
Instructions for updating:
But it did successfully get the emotions and everything! :D
from deepface.
these are warnings. you can discard and ignore.
happy to hear that.
from deepface.
Anyway how I can turn them off? I won't bother u anymore after this :D
Anyways really really really thankful. Thanks for fast replies :D
from deepface.
Using os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' stops the second error but not the first
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.