Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
mmdetection3d
Commits
6bce8b3f
Unverified
Commit
6bce8b3f
authored
Dec 14, 2022
by
VVsssssk
Committed by
GitHub
Dec 14, 2022
Browse files
[CI]: Add torch1.13 checking in CI (#2136)
* fix * fix * fix * fic * fix
parent
84b4348f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
5 deletions
+42
-5
.circleci/test.yml
.circleci/test.yml
+3
-2
.github/workflows/merge_stage_test.yml
.github/workflows/merge_stage_test.yml
+37
-1
.github/workflows/pr_stage_test.yml
.github/workflows/pr_stage_test.yml
+1
-1
requirements/optional.txt
requirements/optional.txt
+1
-1
No files found.
.circleci/test.yml
View file @
6bce8b3f
...
@@ -51,6 +51,7 @@ jobs:
...
@@ -51,6 +51,7 @@ jobs:
command
:
|
command
:
|
python -m pip install --upgrade pip
python -m pip install --upgrade pip
python -m pip install wheel
python -m pip install wheel
python -m pip install typing-extensions --upgrade
-
run
:
-
run
:
name
:
Install PyTorch
name
:
Install PyTorch
command
:
|
command
:
|
...
@@ -147,8 +148,8 @@ workflows:
...
@@ -147,8 +148,8 @@ workflows:
-
lint
-
lint
-
build_cpu
:
-
build_cpu
:
name
:
maximum_version_cpu
name
:
maximum_version_cpu
torch
:
1.
9
.0
torch
:
1.
13
.0
torchvision
:
0.1
0
.0
torchvision
:
0.1
4
.0
python
:
3.9.0
python
:
3.9.0
requires
:
requires
:
-
minimum_version_cpu
-
minimum_version_cpu
...
...
.github/workflows/merge_stage_test.yml
View file @
6bce8b3f
...
@@ -58,7 +58,7 @@ jobs:
...
@@ -58,7 +58,7 @@ jobs:
strategy
:
strategy
:
matrix
:
matrix
:
python-version
:
[
3.7
]
python-version
:
[
3.7
]
torch
:
[
1.6.0
,
1.7.1
,
1.8.1
,
1.9.1
,
1.10.1
,
1.11.0
,
1.12.1
]
torch
:
[
1.6.0
,
1.7.1
,
1.8.1
,
1.9.1
,
1.10.1
,
1.11.0
,
1.12.1
,
1.13.0
]
include
:
include
:
-
torch
:
1.6.0
-
torch
:
1.6.0
torchvision
:
0.7.0
torchvision
:
0.7.0
...
@@ -74,6 +74,8 @@ jobs:
...
@@ -74,6 +74,8 @@ jobs:
torchvision
:
0.12.0
torchvision
:
0.12.0
-
torch
:
1.12.1
-
torch
:
1.12.1
torchvision
:
0.13.1
torchvision
:
0.13.1
-
torch
:
1.13.0
torchvision
:
0.14.0
steps
:
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
actions/checkout@v2
-
name
:
Set up Python ${{ matrix.python-version }}
-
name
:
Set up Python ${{ matrix.python-version }}
...
@@ -185,3 +187,37 @@ jobs:
...
@@ -185,3 +187,37 @@ jobs:
-
name
:
Run unittests and generate coverage report
-
name
:
Run unittests and generate coverage report
run
:
|
run
:
|
pytest tests/
pytest tests/
build_cu116
:
runs-on
:
ubuntu-18.04
container
:
image
:
pytorch/pytorch:1.13.0-cuda11.6-cudnn8-devel
strategy
:
matrix
:
python-version
:
[
3.7
]
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
-
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 system dependencies
run
:
apt-get update && apt-get install -y git ffmpeg libturbojpeg
-
name
:
Install MMEngine from main branch
run
:
pip install git+https://github.com/open-mmlab/mmengine.git@main
-
name
:
Install ninja to speed the compilation
run
:
pip install ninja
-
name
:
Build MMCV from source
run
:
pip install -e . -v
-
name
:
Install unit tests dependencies
run
:
pip install -r requirements/test.txt
-
name
:
Run unittests and generate coverage report
run
:
|
coverage run --branch --source mmcv -m pytest tests
coverage xml
coverage report -m
.github/workflows/pr_stage_test.yml
View file @
6bce8b3f
...
@@ -30,7 +30,7 @@ jobs:
...
@@ -30,7 +30,7 @@ jobs:
with
:
with
:
python-version
:
${{ matrix.python-version }}
python-version
:
${{ matrix.python-version }}
-
name
:
Upgrade pip
-
name
:
Upgrade pip
run
:
pip install pip --upgrade
run
:
python -m
pip install pip --upgrade
-
name
:
Install PyTorch
-
name
:
Install PyTorch
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
run
:
pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
-
name
:
Install MMEngine
-
name
:
Install MMEngine
...
...
requirements/optional.txt
View file @
6bce8b3f
black==20.8b1 # be compatible with typing-extensions 3.7.4
black==20.8b1 # be compatible with typing-extensions 3.7.4
typing-extensions
==3.7.4
# required by tensorflow<=2.6
typing-extensions # required by tensorflow<=2.6
waymo-open-dataset-tf-2-6-0 # requires python>=3.7
waymo-open-dataset-tf-2-6-0 # requires python>=3.7
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment