-
Notifications
You must be signed in to change notification settings - Fork 34
/
cog.yaml
31 lines (30 loc) · 893 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
# Configuration for Cog ⚙️
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
build:
gpu: true
system_packages:
- "libgl1-mesa-glx"
- "libglib2.0-0"
python_version: "3.11"
python_packages:
- torch==2.0.1
- torchvision==0.15.2
- xformers==0.0.22
- pytorch_lightning==1.7.7
- einops===0.7.0
- open-clip-torch==2.24.0
- omegaconf==2.3.0
- torchmetrics==0.11.4
- triton==2.0.0
- opencv-python-headless==4.9.0.80
- scipy==1.11.4
- matplotlib==3.8.2
- lpips==0.1.4
- chardet==5.2.0
- transformers==4.36.2
- facexlib==0.3.0
- pyiqa==0.1.10
- pydantic==1.10.11
run:
- mkdir -p /root/.cache/torch/hub/checkpoints/ && wget --output-document "/root/.cache/torch/hub/checkpoints/vgg16-397923af.pth" "https://download.pytorch.org/models/vgg16-397923af.pth"
predict: "predict.py:Predictor"