Skip to content

Commit ea2c599

Browse files
authored
[CI] Fix CI for timm, pycocotools, onnx (#9034)
* Fix CI by removing timm that requires torch>=1.7 * Fix CI for pycocotools and onnx
1 parent a502d8f commit ea2c599

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ jobs:
128128
- name: Install mmdet dependencies
129129
run: |
130130
python -V
131+
export CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'`
132+
export CXXFLAGS="${CFLAGS}"
131133
python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu101/torch${{matrix.mmcv}}/index.html
132134
python -m pip install pycocotools
133135
python -m pip install -r requirements/tests.txt -r requirements/optional.txt
@@ -206,6 +208,8 @@ jobs:
206208
- name: Install mmdet dependencies
207209
run: |
208210
python -V
211+
export CFLAGS=`python -c 'import sysconfig;print("-I"+sysconfig.get_paths()["include"])'`
212+
export CXXFLAGS="${CFLAGS}"
209213
python -m pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cu102/torch${{matrix.mmcv}}/index.html
210214
python -m pip install pycocotools
211215
python -m pip install -r requirements/tests.txt -r requirements/optional.txt

requirements/optional.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,3 @@ cityscapesscripts
22
imagecorruptions
33
scipy
44
sklearn
5-
timm

0 commit comments

Comments
 (0)