99 - ' demo/**'
1010 - ' .dev_scripts/**'
1111 - ' .circleci/**'
12+ - ' projects/**'
1213 branches :
1314 - dev-1.x
1415
3334 with :
3435 python-version : ${{ matrix.python-version }}
3536 - name : Upgrade pip
36- run : pip install pip --upgrade
37- - name : Install Pillow
38- run : pip install Pillow==6.2.2
39- if : ${{matrix.torchvision == '0.4.2'}}
37+ run : |
38+ pip install pip --upgrade
39+ pip install wheel
4040 - name : Install PyTorch
4141 run : pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
4242 - name : Install mmseg dependencies
6262 strategy :
6363 matrix :
6464 python-version : [3.7]
65- torch : [1.6.0, 1.7.1, 1.8.1, 1.9.1, 1.10.1, 1.11.0]
65+ torch : [1.6.0, 1.7.1, 1.8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.0]
66+ # torch: [1.6.0, 1.7.1, 1.8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.0, 1.13.0]
6667 include :
6768 - torch : 1.6.0
6869 torchvision : 0.7.0
@@ -76,14 +77,20 @@ jobs:
7677 torchvision : 0.11.2
7778 - torch : 1.11.0
7879 torchvision : 0.12.0
80+ - torch : 1.12.0
81+ torchvision : 0.13.0
82+ # - torch: 1.13.0
83+ # torchvision: 0.14.0
7984 steps :
8085 - uses : actions/checkout@v2
8186 - name : Set up Python ${{ matrix.python-version }}
8287 uses : actions/setup-python@v2
8388 with :
8489 python-version : ${{ matrix.python-version }}
8590 - name : Upgrade pip
86- run : pip install pip --upgrade
91+ run : |
92+ pip install pip --upgrade
93+ pip install wheel
8794 - name : Install Pillow
8895 run : pip install Pillow==6.2.2
8996 - name : Install PyTorch
@@ -102,18 +109,19 @@ jobs:
102109 run : rm -rf .eggs && pip install -e .
103110 - name : Run unittests and generate coverage report
104111 # timm from v0.6.11 requires torch>=1.7
105- if : ${{matrix.torch > = '1.7 .0'}}
112+ if : ${{matrix.torch ! = '1.6 .0'}}
106113 run : |
107114 pip install timm
108115 coverage run --branch --source mmseg -m pytest tests/
109116 coverage xml
110117 coverage report -m
111118 - name : Skip timm unittests and generate coverage report
119+ if : ${{matrix.torch == '1.6.0'}}
112120 run : |
113121 coverage run --branch --source mmseg -m pytest tests/ --ignore tests/test_models/test_backbones/test_timm_backbone.py
114122 coverage xml
115123 coverage report -m
116- # Only upload coverage report for python3.7 && pytorch1.8.1 without timm
124+ # Only upload coverage report for python3.7 && pytorch1.8.1 with timm
117125 - name : Upload coverage to Codecov
118126 if : ${{matrix.torch == '1.8.1' && matrix.python-version == '3.7'}}
119127 uses : codecov/codecov-action@v2
@@ -141,14 +149,58 @@ jobs:
141149 with :
142150 python-version : ${{ matrix.python-version }}
143151 - name : Upgrade pip
144- run : pip install pip --upgrade
152+ run : |
153+ pip install pip --upgrade
154+ pip install wheel
155+ - name : Fetch GPG keys
156+ run : |
157+ apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
158+ apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
159+ - name : Install Python-dev
160+ run : apt-get update && apt-get install -y python${{matrix.python-version}}-dev
161+ - name : Install system dependencies
162+ run : |
163+ apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6
164+ - name : Install mmseg dependencies
165+ run : |
166+ python -V
167+ pip install -U openmim
168+ pip install git+https://github.com/open-mmlab/mmengine.git
169+ mim install 'mmcv>=2.0.0rc3'
170+ pip install git+https://github.com/open-mmlab/[email protected] 171+ pip install git+https://github.com/open-mmlab/[email protected] 172+ - name : Install unittest dependencies
173+ run : pip install -r requirements/tests.txt -r requirements/optional.txt
174+ - name : Build and install
175+ run : |
176+ python setup.py check -m -s
177+ TORCH_CUDA_ARCH_LIST=7.0 pip install -e .
178+ build_cu116 :
179+ runs-on : ubuntu-18.04
180+ container :
181+ image : pytorch/pytorch:1.13.0-cuda11.6-cudnn8-devel
182+ strategy :
183+ matrix :
184+ python-version : [3.7]
185+ include :
186+ - torch : 1.13.0
187+ cuda : 11.6
188+ steps :
189+ - uses : actions/checkout@v2
190+ - name : Set up Python ${{ matrix.python-version }}
191+ uses : actions/setup-python@v2
192+ with :
193+ python-version : ${{ matrix.python-version }}
194+ - name : Upgrade pip
195+ run : |
196+ pip install pip --upgrade
197+ pip install wheel
145198 - name : Fetch GPG keys
146199 run : |
147200 apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
148201 apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
149202 - name : Install Python-dev
150203 run : apt-get update && apt-get install -y python${{matrix.python-version}}-dev
151- if : ${{matrix.python-version != 3.9}}
152204 - name : Install system dependencies
153205 run : |
154206 apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6
@@ -180,7 +232,9 @@ jobs:
180232 with :
181233 python-version : ${{ matrix.python-version }}
182234 - name : Upgrade pip
183- run : python -m pip install pip --upgrade
235+ run : |
236+ python -m pip install pip --upgrade
237+ pip install wheel
184238 - name : Install OpenCV
185239 run : pip install opencv-python>=3
186240 - name : Install PyTorch
0 commit comments