-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcog.yaml
More file actions
38 lines (35 loc) · 1023 Bytes
/
cog.yaml
File metadata and controls
38 lines (35 loc) · 1023 Bytes
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
build:
gpu: true
python_version: "3.10"
system_packages:
- ffmpeg
- libgl1-mesa-glx
- libglib2.0-0
- libsm6
- libxext6
- libxrender-dev
- gcc
- g++
- git
- git-lfs
- wget
- cmake
run:
# CUDA setup
- wget https://developer.download.nvidia.com/compute/cuda/12.1.0/local_installers/cuda_12.1.0_530.30.02_linux.run
- sh cuda_12.1.0_530.30.02_linux.run --silent --toolkit
# Core dependencies
- pip install torch==2.0.1 torchvision==0.15.2 --extra-index-url https://download.pytorch.org/whl/cu118
- pip install onnx==1.14.0
- pip install onnxruntime-gpu==1.17.1
- pip install insightface==0.7.3
- pip install opencv-python==4.8.0.74
- pip install pillow==9.5.0
- pip install numpy==1.24.3
- pip install gfpgan==1.3.8
- pip install tensorflow==2.15.0
- pip install ffmpeg-python==0.2.0
- pip install psutil==5.9.5
- pip install tqdm==4.65.0
- pip install protobuf==4.23.2
predict: "predict.py:Predictor"