Git Product home page Git Product logo

Comments (4)

serengil avatar serengil commented on May 22, 2024

please confirm that you are running the api for the following environment

tensorflow==1.9.0
keras==2.2.0

from deepface.

slpraveenath avatar slpraveenath commented on May 22, 2024

Yes, I am using the same versions of tensorflow and keras.

from deepface.

mviennas avatar mviennas commented on May 22, 2024

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

requirements.txt

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.

serengil avatar serengil commented on May 22, 2024

@mviennas thank you for the solution. I'm going to update setup.py and requirements.txt.

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.