-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcog.yaml
120 lines (116 loc) · 3.16 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
# Configuration for Cog ⚙️
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
image: "r8.im/liliyiyi/sdwebui"
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.10"
# a list of packages in the format <package-name>==<version>
python_packages:
- "blendmodes==2022"
- "transformers==4.25.1"
- "accelerate==0.12.0"
- "basicsr==1.4.2"
- "gfpgan==1.3.8"
- "gradio==3.16.2"
- "numpy==1.23.3"
- "Pillow==9.4.0"
- "realesrgan==0.3.0"
- "torch"
- "omegaconf==2.2.3"
# - "pytorch_lightning==1.7.6"
- "scikit-image==0.19.2"
- "fonts"
- "font-roboto"
- "timm==0.6.7"
- "piexif==1.1.3"
- "einops==0.4.1"
- "jsonmerge==1.8.0"
- "clean-fid==0.1.29"
- "resize-right==0.0.2"
- "torchdiffeq==0.2.3"
- "kornia==0.6.7"
- "lark==1.1.2"
- "inflection==0.5.1"
- "GitPython==3.1.27"
- "torchsde==0.2.5"
- "safetensors==0.2.7"
- "httpcore<=0.15"
- "fastapi==0.90.1"
- "blendmodes"
- "accelerate"
- "basicsr"
- "fonts"
- "font-roboto"
- "gfpgan"
- "gradio==3.16.2"
- "invisible-watermark"
# - "numpy"
- "omegaconf"
- "opencv-contrib-python"
- "requests"
- "piexif"
- "Pillow"
- "pytorch_lightning==1.7.7"
- "realesrgan"
- "scikit-image>=0.19"
# - "timm==0.4.12"
# - "transformers==4.25.1"
# - "torch"
# - "einops"
# - "jsonmerge"
# - "clean-fid"
# - "resize-right"
# - "torchdiffeq"
# - "kornia"
# - "lark"
# - "inflection"
# - "GitPython"
# - "torchsde"
# - "safetensors"
- "psutil"
# - "numpy==1.19.4"
# - "torch==1.8.0"
# - "torchvision==0.9.0"
# codeformer requirements
- "addict"
- "future"
- "lmdb"
# - "numpy"
- "opencv-python"
# - "Pillow"
- "pyyaml"
# - "requests"
# - "scikit-image"
- "scipy"
- "tb-nightly"
# - torch>=1.7.1
# - torchvision
- tqdm
- yapf
- lpips
- gdown # supports downloading the large file from Google Drive
# cmake
# dlib
# conda install -c conda-forge dlib
# commands run after the environment is setup
run:
# need to copy the requirements file manually
# - "cp /bin/bash /bin/sh"
# - 'echo "source ~/google-cloud-sdk/path.bash.inc" >> ~/.bashrc'
# - ". venv/bin/activate.csh"
- "pip install torch==1.13.1+cu117 torchvision==0.14.1+cu117 --extra-index-url https://download.pytorch.org/whl/cu117"
- "pip install xformers==0.0.16rc425"
- "pip install git+https://github.com/TencentARC/GFPGAN.git@8d2447a2d918f8eba5a4a01463fd48e45126a379"
- "pip install git+https://github.com/openai/CLIP.git@d50d76daa670286dd6cacf3bcd80b5e4823fc8e1"
- "pip install git+https://github.com/mlfoundations/open_clip.git@bb6e834e9c70d9c27d0dc3ecedeebeaeb1ffad6b"
- "pip install pyngrok"
- "echo env is ready!"
- "echo another command if needed"
# predict.py defines how predictions are run on your model
predict: "predict.py:Predictor"