-
Notifications
You must be signed in to change notification settings - Fork 155
/
Copy pathcog.yaml
32 lines (32 loc) · 1 KB
/
cog.yaml
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
image: "r8.im/yuval-alaluf/restyle_encoder"
build:
gpu: true
python_version: "3.8"
system_packages:
- "cmake"
- "libgl1-mesa-glx"
- "libglib2.0-0"
- "zip"
- "ninja-build"
python_packages:
- "Pillow==8.3.1"
- "cmake==3.21.1"
- "dlib==19.22.1"
- "imageio==2.9.0"
- "ipython==7.21.0"
- "matplotlib==3.1.3"
- "numpy==1.21.1"
- "opencv-python==4.5.3.56"
- "scipy==1.4.1"
- "tensorboard==2.2.1"
- "torch==1.8.0"
- "torchvision==0.9.0"
- "tqdm==4.42.1"
pre_install:
- "mkdir /content"
- "wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip"
- "unzip ninja-linux.zip -d /usr/local/bin/"
- "update-alternatives --install /usr/bin/ninja ninja /usr/local/bin/ninja 1 --force"
- "wget -O /content/shape_predictor_68_face_landmarks.dat.bz2 http://dlib.net/files/shape_predictor_68_face_landmarks.dat.bz2"
- "cd /content && bzip2 -dk shape_predictor_68_face_landmarks.dat.bz2"
predict: predict.py:Predictor