forked from open-mmlab/mmsegmentation
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
56 changed files
with
2,584 additions
and
795 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- 'demo/**' | ||
- '.dev_scripts/**' | ||
- '.circleci/**' | ||
- 'projects/**' | ||
branches: | ||
- dev-1.x | ||
|
||
|
@@ -33,10 +34,9 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: pip install pip --upgrade | ||
- name: Install Pillow | ||
run: pip install Pillow==6.2.2 | ||
if: ${{matrix.torchvision == '0.4.2'}} | ||
run: | | ||
pip install pip --upgrade | ||
pip install wheel | ||
- name: Install PyTorch | ||
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html | ||
- name: Install mmseg dependencies | ||
|
@@ -62,7 +62,8 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: [3.7] | ||
torch: [1.6.0, 1.7.1, 1.8.1, 1.9.1, 1.10.1, 1.11.0] | ||
torch: [1.6.0, 1.7.1, 1.8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.0] | ||
# 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] | ||
include: | ||
- torch: 1.6.0 | ||
torchvision: 0.7.0 | ||
|
@@ -76,14 +77,20 @@ jobs: | |
torchvision: 0.11.2 | ||
- torch: 1.11.0 | ||
torchvision: 0.12.0 | ||
- torch: 1.12.0 | ||
torchvision: 0.13.0 | ||
# - torch: 1.13.0 | ||
# torchvision: 0.14.0 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: pip install pip --upgrade | ||
run: | | ||
pip install pip --upgrade | ||
pip install wheel | ||
- name: Install Pillow | ||
run: pip install Pillow==6.2.2 | ||
- name: Install PyTorch | ||
|
@@ -102,18 +109,19 @@ jobs: | |
run: rm -rf .eggs && pip install -e . | ||
- name: Run unittests and generate coverage report | ||
# timm from v0.6.11 requires torch>=1.7 | ||
if: ${{matrix.torch >= '1.7.0'}} | ||
if: ${{matrix.torch != '1.6.0'}} | ||
run: | | ||
pip install timm | ||
coverage run --branch --source mmseg -m pytest tests/ | ||
coverage xml | ||
coverage report -m | ||
- name: Skip timm unittests and generate coverage report | ||
if: ${{matrix.torch == '1.6.0'}} | ||
run: | | ||
coverage run --branch --source mmseg -m pytest tests/ --ignore tests/test_models/test_backbones/test_timm_backbone.py | ||
coverage xml | ||
coverage report -m | ||
# Only upload coverage report for python3.7 && pytorch1.8.1 without timm | ||
# Only upload coverage report for python3.7 && pytorch1.8.1 with timm | ||
- name: Upload coverage to Codecov | ||
if: ${{matrix.torch == '1.8.1' && matrix.python-version == '3.7'}} | ||
uses: codecov/codecov-action@v2 | ||
|
@@ -141,14 +149,58 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: pip install pip --upgrade | ||
run: | | ||
pip install pip --upgrade | ||
pip install wheel | ||
- name: Fetch GPG keys | ||
run: | | ||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub | ||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub | ||
- name: Install Python-dev | ||
run: apt-get update && apt-get install -y python${{matrix.python-version}}-dev | ||
- name: Install system dependencies | ||
run: | | ||
apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6 | ||
- name: Install mmseg dependencies | ||
run: | | ||
python -V | ||
pip install -U openmim | ||
pip install git+https://github.com/open-mmlab/mmengine.git | ||
mim install 'mmcv>=2.0.0rc3' | ||
pip install git+https://github.com/open-mmlab/[email protected] | ||
pip install git+https://github.com/open-mmlab/[email protected] | ||
- name: Install unittest dependencies | ||
run: pip install -r requirements/tests.txt -r requirements/optional.txt | ||
- name: Build and install | ||
run: | | ||
python setup.py check -m -s | ||
TORCH_CUDA_ARCH_LIST=7.0 pip install -e . | ||
build_cu116: | ||
runs-on: ubuntu-18.04 | ||
container: | ||
image: pytorch/pytorch:1.13.0-cuda11.6-cudnn8-devel | ||
strategy: | ||
matrix: | ||
python-version: [3.7] | ||
include: | ||
- torch: 1.13.0 | ||
cuda: 11.6 | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: | | ||
pip install pip --upgrade | ||
pip install wheel | ||
- name: Fetch GPG keys | ||
run: | | ||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub | ||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub | ||
- name: Install Python-dev | ||
run: apt-get update && apt-get install -y python${{matrix.python-version}}-dev | ||
if: ${{matrix.python-version != 3.9}} | ||
- name: Install system dependencies | ||
run: | | ||
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: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: python -m pip install pip --upgrade | ||
run: | | ||
python -m pip install pip --upgrade | ||
pip install wheel | ||
- name: Install OpenCV | ||
run: pip install opencv-python>=3 | ||
- name: Install PyTorch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ on: | |
- 'demo/**' | ||
- '.dev_scripts/**' | ||
- '.circleci/**' | ||
- 'projects/**' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
@@ -30,7 +31,10 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: pip install pip --upgrade | ||
run: | | ||
pip install pip --upgrade | ||
# Install wheel for source distribution build. https://github.com/pypa/pip/blob/main/src/pip/_internal/wheel_builder.py#L94 | ||
pip install wheel | ||
- name: Install Pillow | ||
run: pip install Pillow==6.2.2 | ||
if: ${{matrix.torchvision == '0.4.2'}} | ||
|
@@ -49,10 +53,11 @@ jobs: | |
run: rm -rf .eggs && pip install -e . | ||
- name: Run unittests and generate coverage report | ||
run: | | ||
coverage run --branch --source mmseg -m pytest tests/ --ignore tests/test_models/test_backbones/test_timm_backbone.py | ||
pip install timm | ||
coverage run --branch --source mmseg -m pytest tests/ | ||
coverage xml | ||
coverage report -m | ||
# Upload coverage report for python3.7 && pytorch1.8.1 cpu without timm | ||
# Upload coverage report for python3.7 && pytorch1.8.1 cpu with timm | ||
- name: Upload coverage to Codecov | ||
uses: codecov/[email protected] | ||
with: | ||
|
@@ -76,7 +81,9 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: pip install pip --upgrade | ||
run: | | ||
pip install pip --upgrade | ||
pip install wheel | ||
- name: Fetch GPG keys | ||
run: | | ||
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub | ||
|
@@ -116,7 +123,9 @@ jobs: | |
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Upgrade pip | ||
run: python -m pip install pip --upgrade | ||
run: | | ||
python -m pip install pip --upgrade | ||
pip install wheel | ||
- name: Install OpenCV | ||
run: pip install opencv-python>=3 | ||
- name: Install PyTorch | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.