-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (30 loc) · 1.56 KB
/
Dockerfile
File metadata and controls
43 lines (30 loc) · 1.56 KB
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
FROM nvidia/cuda:12.1.0-base-ubuntu20.04
RUN apt update && DEBIAN_FRONTEND=noninteractive apt install git bzip2 wget unzip python3-pip python3-dev cmake libgl1-mesa-dev python-is-python3 libgtk2.0-dev -yq
RUN git clone https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life.git
RUN cd Bringing-Old-Photos-Back-to-Life/Face_Enhancement/models/networks/ &&\
git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch &&\
cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm . &&\
cd ../../../
RUN cd Bringing-Old-Photos-Back-to-Life/Global/detection_models &&\
git clone https://github.com/vacancy/Synchronized-BatchNorm-PyTorch &&\
cp -rf Synchronized-BatchNorm-PyTorch/sync_batchnorm . &&\
cd ../../
RUN cd Bringing-Old-Photos-Back-to-Life/Face_Detection/ &&\
wget http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2 &&\
bzip2 -d shape_predictor_68_face_landmarks.dat.bz2 &&\
cd ../
RUN cd Bringing-Old-Photos-Back-to-Life/Face_Enhancement/ &&\
wget https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life/releases/download/v1.0/face_checkpoints.zip &&\
unzip face_checkpoints.zip &&\
cd ../ &&\
cd Global/ &&\
wget https://github.com/microsoft/Bringing-Old-Photos-Back-to-Life/releases/download/v1.0/global_checkpoints.zip &&\
unzip global_checkpoints.zip &&\
cd ../
RUN pip3 install numpy
RUN pip3 install dlib
RUN pip3 install -r Bringing-Old-Photos-Back-to-Life/requirements.txt
RUN git clone https://github.com/NVlabs/SPADE.git
RUN cd SPADE/ && pip3 install -r requirements.txt
RUN cd ..
CMD ["python3", "run.py"]