-
Notifications
You must be signed in to change notification settings - Fork 151
/
cog.yaml
39 lines (33 loc) · 1022 Bytes
/
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
33
34
35
36
37
38
39
# Configuration for Cog ⚙️
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
build:
# set to true if your model requires a GPU
gpu: true
# a list of ubuntu apt packages to install
# system_packages:
# - "libgl1-mesa-glx"
# - "libglib2.0-0"
# python version in the form '3.8' or '3.8.12'
python_version: "3.8"
# a list of packages in the format <package-name>==<version>
python_packages:
- "ipython==7.33.0"
- "numpy==1.19.4"
- "torch==1.11.0"
- "torchvision==0.12.0"
- "tqdm==4.64.0"
- "gdown==4.4.0"
- "kornia==0.6.5"
- "scipy==1.7.3"
- "moviepy==1.0.3"
- "lpips==0.1.4"
- "ninja==1.10.2.3"
- "gradio==3.0.2"
# commands run after the environment is setup
run:
- "apt-get update && apt-get install -y cmake ffmpeg libsm6 libxext6"
- "pip install opencv-python"
- "pip install dlib"
- "pip install aubio==0.4.9"
# predict.py defines how predictions are run on your model
predict: "predict.py:Predictor"