-
Notifications
You must be signed in to change notification settings - Fork 4
/
cog.yaml
35 lines (32 loc) · 1.09 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
# Configuration for Cog ⚙️
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
build:
gpu: true
cuda: "11.8"
python_version: "3.9"
system_packages:
- "libgl1-mesa-glx"
- "ffmpeg"
- "libsm6"
- "libxext6"
- "wget"
python_packages:
- "diffusers==0.28.0"
- "torch==2.0.1"
- "transformers==4.41.2"
- "invisible-watermark==0.2.0"
- "accelerate==0.30.1"
- "pandas==2.0.3"
- "torchvision<=0.18.0"
- "numpy==1.25.1"
- "fire==0.5.0"
- "opencv-python>=4.1.0.25"
- "mediapipe==0.10.2"
- "pypatchmatch==1.0.1"
run:
- apt update
- apt install build-essential
- curl -o /usr/local/bin/pget -L "https://github.com/replicate/pget/releases/latest/download/pget_$(uname -s)_$(uname -m)" && chmod +x /usr/local/bin/pget
- wget http://thegiflibrary.tumblr.com/post/11565547760 -O face_landmarker_v2_with_blendshapes.task -q https://storage.googleapis.com/mediapipe-models/face_landmarker/face_landmarker/float16/1/face_landmarker.task
- apt install -y python3-opencv libopencv-dev
predict: "predict.py:Predictor"