Spaces:
Sleeping
Sleeping
Upload cog.yaml
Browse files
cog.yaml
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Configuration for Cog ⚙️
|
| 2 |
+
# Reference: https://github.com/replicate/cog/blob/main/docs/yaml.md
|
| 3 |
+
|
| 4 |
+
build:
|
| 5 |
+
# set to true if your model requires a GPU
|
| 6 |
+
cuda: "10.2"
|
| 7 |
+
gpu: true
|
| 8 |
+
|
| 9 |
+
# a list of ubuntu apt packages to install
|
| 10 |
+
system_packages:
|
| 11 |
+
# - "libgl1-mesa-glx"
|
| 12 |
+
# - "libglib2.0-0"
|
| 13 |
+
- "libgl1-mesa-dev"
|
| 14 |
+
|
| 15 |
+
# python version in the form '3.8' or '3.8.12'
|
| 16 |
+
python_version: "3.8"
|
| 17 |
+
|
| 18 |
+
# a list of packages in the format <package-name>==<version>
|
| 19 |
+
python_packages:
|
| 20 |
+
# - "numpy==1.19.4"
|
| 21 |
+
# - "torch==1.8.0"
|
| 22 |
+
# - "torchvision==0.9.0"
|
| 23 |
+
- "numpy==1.23.1"
|
| 24 |
+
- "torch==1.8.0"
|
| 25 |
+
- "torchvision==0.9.0"
|
| 26 |
+
- "opencv-python==4.6.0.66"
|
| 27 |
+
- "pandas==1.4.3"
|
| 28 |
+
- "pillow==9.2.0"
|
| 29 |
+
- "tqdm==4.64.0"
|
| 30 |
+
- "scikit-image==0.19.3"
|
| 31 |
+
- "scikit-learn==1.1.2"
|
| 32 |
+
- "scipy==1.9.1"
|
| 33 |
+
|
| 34 |
+
# commands run after the environment is setup
|
| 35 |
+
# run:
|
| 36 |
+
# - "echo env is ready!"
|
| 37 |
+
# - "echo another command if needed"
|
| 38 |
+
|
| 39 |
+
# predict.py defines how predictions are run on your model
|
| 40 |
+
predict: "predict.py:Predictor"
|
| 41 |
+
#image: "r8.im/menghanxia/disco"
|