forked from TencentARC/PhotoMaker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
cog.yaml
30 lines (23 loc) · 803 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
# 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
# python version in the form '3.11' or '3.11.4'
python_version: "3.11"
python_packages:
- "accelerate==0.26.1"
- "diffusers==0.25.0"
- "huggingface-hub==0.20.2"
- "numpy==1.24.4"
- "omegaconf==2.3.0"
- "peft==0.7.1"
- "safetensors==0.4.1"
- "torch==2.1.1"
- "torchvision==0.16.1"
- "transformers==4.36.2"
run:
- curl -o /usr/local/bin/pget -L "https://github.com/replicate/pget/releases/download/v0.5.6/pget_linux_x86_64" && chmod +x /usr/local/bin/pget
# predict.py defines how predictions are run on your model
predict: "predict.py:Predictor"
image: r8.im/tencentarc/photomaker