@@ -129,9 +129,6 @@ jobs:
129129 if : ${{matrix.torchvision < 0.5}}
130130 - name : Install PyTorch
131131 run : python -m pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
132- - name : Install dependencies for compiling onnx when python=3.9
133- run : python -m pip install protobuf && apt-get install libprotobuf-dev protobuf-compiler
134- if : ${{matrix.python-version == '3.9'}}
135132 - name : Install mmseg dependencies
136133 run : |
137134 python -V
@@ -164,7 +161,7 @@ jobs:
164161
165162 strategy :
166163 matrix :
167- python-version : [3.6, 3.7, 3.8, 3.9-dev ]
164+ python-version : [3.6, 3.7, 3.8, 3.9]
168165 torch : [1.9.0+cu102]
169166 include :
170167 - torch : 1.9.0+cu102
@@ -178,9 +175,6 @@ jobs:
178175 uses : actions/setup-python@v2
179176 with :
180177 python-version : ${{ matrix.python-version }}
181- - name : Install python-dev
182- run : apt-get update && apt-get install -y python${{matrix.python-version}}-dev
183- if : ${{matrix.python-version != '3.9-dev'}}
184178 - name : Install system dependencies
185179 run : |
186180 apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6
@@ -191,14 +185,10 @@ jobs:
191185 if : ${{matrix.torchvision < 0.5}}
192186 - name : Install PyTorch
193187 run : python -m pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
194- - name : Install dependencies for compiling onnx when python=3.9
195- run : python -m pip install protobuf && apt-get update && apt-get -y install libprotobuf-dev protobuf-compiler cmake
196- if : ${{matrix.python-version == '3.9-dev'}}
197188 - name : Install mmseg dependencies
198189 run : |
199190 python -V
200191 python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/${{matrix.mmcv_link}}/index.html
201- python -m pip install pycocotools
202192 python -m pip install -r requirements.txt
203193 python -c 'import mmcv; print(mmcv.__version__)'
204194 - name : Build and install
0 commit comments