Coder Social home page Coder Social logo

Comments (8)

serengil avatar serengil commented on June 5, 2024

Would you please try to disable gpu by adding the following command in dockerfile?

ENV CUDA_VISIBLE_DEVICES=""

or

ENV CUDA_VISIBLE_DEVICES="-1"

you can add it this level: https://github.com/serengil/deepface/blob/master/Dockerfile#L45

from deepface.

sana2024 avatar sana2024 commented on June 5, 2024

Would you please try to disable gpu by adding the following command in dockerfile?

ENV CUDA_VISIBLE_DEVICES=""

or

ENV CUDA_VISIBLE_DEVICES="-1"

you can add it this level: https://github.com/serengil/deepface/blob/master/Dockerfile#L45

okay i added this line but what should i do next?? it's still doesn't work,
sorry i'm not so familiar with docker.

from deepface.

serengil avatar serengil commented on June 5, 2024

how did you run the service on aws before?

from deepface.

sana2024 avatar sana2024 commented on June 5, 2024

how did you run the service on aws before?

i installed python3 on the instance
install pip using python,
git clone https://github.com/serengil/deepface.git
pip install requirements.txt
then went to the api directory
pip install flask
pip install deepface
finally python3 api.py
and this is where i get the error

from deepface.

serengil avatar serengil commented on June 5, 2024

update dockerfile on that instance manually after clone

then run python3 api.py again

from deepface.

serengil avatar serengil commented on June 5, 2024

oh you are not using docker. in deepface folder run this:

docker build -t deepface . && docker run -p 5000:5000 deepface

or if you do not want to use docker, then run this command in the console before running api.

apt-get update && apt-get install ffmpeg libsm6 libxext6 -y

from deepface.

sana2024 avatar sana2024 commented on June 5, 2024

oh you are not using docker. in deepface folder run this:

docker build -t deepface . && docker run -p 5000:5000 deepface

okay what should be the size of the server?? because now it says no space left on disk to run this, i'm on meduim, 2cpu 4gb memory and the only thing on it is the cloned repository and the installed deepface package.

from deepface.

serengil avatar serengil commented on June 5, 2024

try just this please:

apt-get update && apt-get install ffmpeg libsm6 libxext6 -y

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.