Comments (4)
please confirm that you are running the api for the following environment
tensorflow==1.9.0
keras==2.2.0
from deepface.
Yes, I am using the same versions of tensorflow and keras.
from deepface.
I have the same problem. By default if you have a clean environment (only python 3.6) and then you will run the following command "pip install deepface" you will get tensorflow 2.2.
I manage to overcome this issue using the following commands (install tensorflow==1.9.0
keras==2.2.0):
pip install --no-cache-dir -r requirements.txt
pip install deepface
If you prefer docker below you can find my Dockerfile:
FROM python:3.6
WORKDIR /usr/src/app
COPY requirements.txt ./
COPY deepface-cache/ /root/.deepface/ #in order not to download .h5 files every time. You have to downloaded once in deepface-cache first. You can also comment this line
RUN pip install --no-cache-dir -r requirements.txt
RUN pip install deepface
COPY api.py ./
CMD [ "python", "./api.py" ]
Finally you have to build the image and run it:
docker run -p 5000:5000 --restart unless-stopped -d deepfaceapi:latest
from deepface.
@mviennas thank you for the solution. I'm going to update setup.py and requirements.txt.
from deepface.
Related Issues (20)
- Align first and detect second in detection module by default HOT 2
- NoneType' object has no attribute 'groups' when using YoloV8 on deepface==0.0.84 HOT 9
- API has convert("BGR") when loading a jpg image? HOT 4
- make confidence scores of different detectors in same scale HOT 3
- Async implementation HOT 1
- Facial analysis and gender analysis are incorrect. How to modify the parameters to ensure its accuracy? HOT 3
- Lack of verbosity during AttributeErrors HOT 4
- Find match from dataset continuosly try to add unrecognized images to pickle HOT 6
- Custom Model Position HOT 1
- Hi, all previous discussions and comments are deleted? HOT 1
- Double load of matching image in realtime.py HOT 2
- Double (unneeded) face detection in realtime.py HOT 4
- update face detector stock image HOT 1
- fastmtcnn sometimes throws TypeError HOT 6
- Expand facial area logic is expanding the facial area twice of expected HOT 3
- Fatal Exception with libprotobuf in Feature Extractor on Version 0.85 HOT 1
- deepface-cv2 HOT 4
- [Feature-Request] - Passing embeddings vector in verify function img1_path or img1_path HOT 2
- Preprocessing.py load_image -> load_base64 HOT 2
- Preprocessing.py load_image -> __load_image_from_web HOT 3
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.