Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

Dockerfile.gpu 1.1 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
  1. # This is a sample Dockerfile you can modify to deploy your own app based on face_recognition on the GPU
  2. # In order to run Docker in the GPU you will need to install Nvidia-Docker: https://github.com/NVIDIA/nvidia-docker
  3. FROM nvidia/cuda:9.0-cudnn7-devel
  4. # Install face recognition dependencies
  5. RUN apt update -y; apt install -y \
  6. git \
  7. cmake \
  8. libsm6 \
  9. libxext6 \
  10. libxrender-dev \
  11. python3 \
  12. python3-pip
  13. RUN pip3 install scikit-build
  14. # Install compilers
  15. RUN apt install -y software-properties-common
  16. RUN add-apt-repository ppa:ubuntu-toolchain-r/test
  17. RUN apt update -y; apt install -y gcc-6 g++-6
  18. RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-6 50
  19. RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-6 50
  20. #Install dlib
  21. RUN git clone -b 'v19.16' --single-branch https://github.com/davisking/dlib.git
  22. RUN mkdir -p /dlib/build
  23. RUN cmake -H/dlib -B/dlib/build -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1
  24. RUN cmake --build /dlib/build
  25. RUN cd /dlib; python3 /dlib/setup.py install
  26. # Install the face recognition package
  27. RUN pip3 install face_recognition
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...