forked from Naagar/art_restoration_DM
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cog.yaml
32 lines (31 loc) · 1.04 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
# 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"
- "numpy==1.25.1"
- "opencv-python==4.8.0.74"
- "imageio==2.31.1"
- "omegaconf==2.3.0"
- "transformers==4.31.0"
- "torchmetrics==0.7.0"
- "open_clip_torch==2.0.2"
- "einops==0.6.1"
- "pytorch_lightning==1.7.7"
- "scipy==1.11.1"
- "scikit-image==0.21.0"
- "matplotlib==3.7.2"
- "scikit-learn==1.3.0"
- "kornia==0.6.12"
- "xformers==0.0.20"
- "clip @ git+https://github.com/openai/CLIP.git"
run:
- pip install git+https://github.com/CompVis/taming-transformers.git@master#egg=taming-transformers
- 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"