4646 python -m pip install -r requirements/backends.txt
4747 python -m mim install "mmcv>=2.0.0"
4848 python -m mim install -r requirements/codebases.txt
49- python -m pip install clip numba transformers numpy==1.23
49+ python -m pip install clip numba transformers numpy==1.23 albumentations
5050 python -m pip list
5151 - name : Install mmyolo
5252 run : |
@@ -145,23 +145,16 @@ jobs:
145145 COLOR : ${{ steps.badge_status.conclusion == 'success' && 'green' || 'red' }}
146146 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
147147
148- build_cuda102 :
148+ build_cuda117 :
149149 runs-on : ubuntu-20.04
150150 container :
151- image : pytorch/pytorch:1.9 .0-cuda10.2-cudnn7 -devel
151+ image : pytorch/pytorch:2.0 .0-cuda11.7-cudnn8 -devel
152152 env :
153153 FORCE_CUDA : 1
154- strategy :
155- matrix :
156- torch : [1.9.0+cu102]
157- include :
158- - torch : 1.9.0+cu102
159- torchvision : 0.10.0+cu102
160154 steps :
161155 - uses : actions/checkout@v2
162156 - name : Install system dependencies
163157 run : |
164- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC
165158 apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev
166159 apt-get clean
167160 rm -rf /var/lib/apt/lists/*
@@ -170,33 +163,50 @@ jobs:
170163 python -V
171164 python -m pip show torch torchvision
172165 python -m pip install --no-cache-dir --upgrade pip
173- python -m pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
166+ - name : Check disk space
167+ continue-on-error : true
168+ run : |
169+ df -h
170+ rm -rf /__t/go
171+ rm -rf /__t/node
172+ rm -rf /__t/Ruby
173+ rm -rf /__t/CodeQL
174+ cat /proc/cpuinfo | grep -ic proc
175+ free
176+ df -h
174177 - name : Install dependencies
175178 run : |
176179 python -V
177- export CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'`
178180 python -m pip install --no-cache-dir openmim
179181 python -m pip install --no-cache-dir -r requirements.txt
180182 python -m pip install --no-cache-dir -r requirements/backends.txt
181- python -m mim install "mmcv>=2.0.0rc1 "
182- CFLAGS=$CFLAGS python -m mim install -r requirements/codebases.txt
183- python -m pip install --no-cache-dir -U pycuda numpy clip numba transformers
183+ python -m mim install "mmcv>=2.0.0 "
184+ python -m pip install --no-cache-dir -r requirements/codebases.txt
185+ python -m pip install --no-cache-dir -U pycuda numpy==1.23 clip numba transformers albumentations
184186 python -m pip list
185187 - name : Build and install
186188 run : |
187189 rm -rf .eggs && python -m pip install -e .
188190 python tools/check_env.py
189191 - name : Run unittests and generate coverage report
190- id : badge_status
191192 run : |
192193 coverage run --branch --source mmdeploy -m pytest -rsE tests
193194 coverage xml
194195 coverage report -m
196+ - name : Upload coverage to Codecov
197+ id : badge_status
198+ uses : codecov/codecov-action@v2
199+ with :
200+ file : ./coverage.xml,./coverage.info
201+ flags : unittests
202+ env_vars : OS,PYTHON,CPLUS
203+ name : codecov-umbrella
204+ fail_ci_if_error : false
195205 - name : create badge
196206 if : always()
197207198208 with :
199- NAME : build_cuda102
209+ NAME : build_cuda117
200210 LABEL : ' build'
201211 STATUS : ${{ steps.badge_status.conclusion == 'success' && 'passing' || 'failing' }}
202212 COLOR : ${{ steps.badge_status.conclusion == 'success' && 'green' || 'red' }}
@@ -210,7 +220,6 @@ jobs:
210220 - uses : actions/checkout@v2
211221 - name : Install system dependencies
212222 run : |
213- apt-key adv --keyserver keyserver.ubuntu.com --recv-keys A4B469963BF863CC
214223 apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libxrender-dev
215224 apt-get clean
216225 rm -rf /var/lib/apt/lists/*
@@ -219,16 +228,26 @@ jobs:
219228 python -V
220229 python -m pip show torch torchvision
221230 python -m pip install --no-cache-dir --upgrade pip
231+ - name : Check disk space
232+ continue-on-error : true
233+ run : |
234+ df -h
235+ rm -rf /__t/go
236+ rm -rf /__t/node
237+ rm -rf /__t/Ruby
238+ rm -rf /__t/CodeQL
239+ cat /proc/cpuinfo | grep -ic proc
240+ free
241+ df -h
222242 - name : Install dependencies
223243 run : |
224244 python -V
225- export CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'`
226245 python -m pip install --no-cache-dir openmim
227246 python -m pip install --no-cache-dir -r requirements.txt
228247 python -m pip install --no-cache-dir -r requirements/backends.txt
229- python -m mim install "mmcv>=2.0.0rc1 "
230- python -m mim install -r requirements/codebases.txt
231- python -m pip install --no-cache-dir -U pycuda numpy clip numba transformers
248+ python -m mim install --no-cache-dir "mmcv>=2.0.0 "
249+ python -m pip install --no-cache-dir -r requirements/codebases.txt
250+ python -m pip install --no-cache-dir -U pycuda numpy clip numba transformers albumentations
232251 python -m pip list
233252 - name : Build and install
234253 run : |
@@ -239,15 +258,6 @@ jobs:
239258 coverage run --branch --source mmdeploy -m pytest -rsE tests
240259 coverage xml
241260 coverage report -m
242- - name : Upload coverage to Codecov
243- id : badge_status
244- uses : codecov/codecov-action@v2
245- with :
246- file : ./coverage.xml,./coverage.info
247- flags : unittests
248- env_vars : OS,PYTHON,CPLUS
249- name : codecov-umbrella
250- fail_ci_if_error : false
251261 - name : create badge
252262 if : always()
253263@@ -259,6 +269,7 @@ jobs:
259269 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
260270
261271 build_cuda113_linux :
272+ needs : [build_cpu_model_convert, build_cpu_sdk, build_cuda117]
262273 runs-on : [self-hosted, linux-3090]
263274 container :
264275 image : openmmlab/mmdeploy:ubuntu20.04-cuda11.3
@@ -309,6 +320,7 @@ jobs:
309320 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
310321
311322 build_cuda113_windows :
323+ needs : [build_cpu_model_convert, build_cpu_sdk, build_cuda117]
312324 runs-on : [self-hosted, win10-3080]
313325 env :
314326 BASE_ENV : cuda11.3-cudnn8.2-py3.8-torch1.10
0 commit comments