-
Notifications
You must be signed in to change notification settings - Fork 89
/
Dockerfile
60 lines (54 loc) · 1.49 KB
/
Dockerfile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright@SCLBD
# This Dockerfile aims to build the base image for Deepfakbench.
FROM pytorch/pytorch:1.12.0-cuda11.3-cudnn8-devel
LABEL maintainer="Deepfake"
# Install dependencies outside of the base image
RUN DEBIAN_FRONTEND=noninteractive apt update && \
apt install -y --no-install-recommends automake \
build-essential \
ca-certificates \
libfreetype6-dev \
libtool \
pkg-config \
python-dev \
python-distutils-extra \
python3.7-dev \
python3-pip \
cmake \
&& \
rm -rf /var/lib/apt/lists/* \
&& \
update-alternatives --install /usr/bin/python python /usr/bin/python3.7 0 \
&& \
python3.7 -m pip install pip --upgrade
WORKDIR /
# Install Python dependencies
RUN pip install --no-cache-dir certifi setuptools \
&& \
pip --no-cache-dir install dlib==19.24.0\
imageio==2.9.0\
imgaug==0.4.0\
scipy==1.7.3\
seaborn==0.11.2\
pyyaml==6.0\
imutils==0.5.4\
opencv-python==4.6.0.66\
scikit-image==0.19.2\
scikit-learn==1.0.2\
efficientnet-pytorch==0.7.1\
timm==0.6.12\
segmentation-models-pytorch==0.3.2\
torchtoolbox==0.1.8.2\
tensorboard==2.10.1\
pip install setuptools==59.5.0 \
pip install loralib \
pip install pytorchvideo \
pip install einops \
pip install transformers \
pip install filterpy \
pip install simplejson \
pip install kornia \
pip install git+https://github.com/openai/CLIP.git
ENV MODEL_NAME=deepfakebench
# Expose port
EXPOSE 6000