forked from facebookresearch/Mask2Former
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cog.yaml
28 lines (27 loc) · 907 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
build:
gpu: true
cuda: "10.1"
python_version: "3.8"
system_packages:
- "libgl1-mesa-glx"
- "libglib2.0-0"
python_packages:
- "ipython==7.30.1"
- "numpy==1.21.4"
- "torch==1.8.1"
- "torchvision==0.9.1"
- "opencv-python==4.5.5.62"
- "Shapely==1.8.0"
- "h5py==3.6.0"
- "scipy==1.7.3"
- "submitit==1.4.1"
- "scikit-image==0.19.1"
- "Cython==0.29.27"
- "timm==0.4.12"
run:
- pip install detectron2 -f https://dl.fbaipublicfiles.com/detectron2/wheels/cu101/torch1.8/index.html
- pip install git+https://github.com/cocodataset/panopticapi.git
- pip install git+https://github.com/mcordts/cityscapesScripts.git
- git clone https://github.com/facebookresearch/Mask2Former
- TORCH_CUDA_ARCH_LIST='7.5' FORCE_CUDA=1 python Mask2Former/mask2former/modeling/pixel_decoder/ops/setup.py build install
predict: "predict.py:Predictor"