Skip to content

Commit

Permalink
merge dev-1.x into main
Browse files Browse the repository at this point in the history
  • Loading branch information
cir7 committed Jul 6, 2023
2 parents c331b65 + 56c18a2 commit f2637ee
Show file tree
Hide file tree
Showing 354 changed files with 27,093 additions and 4,613 deletions.
4 changes: 2 additions & 2 deletions .circleci/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG PYTORCH="1.8.1"
ARG CUDA="10.2"
ARG CUDNN="7"
ARG CUDA="11.1"
ARG CUDNN="8"

FROM pytorch/pytorch:${PYTORCH}-cuda${CUDA}-cudnn${CUDNN}-devel

Expand Down
31 changes: 13 additions & 18 deletions .circleci/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,14 @@ jobs:
pip install git+ssh://[email protected]/open-mmlab/mmengine.git@main
pip install -U openmim
mim install 'mmcv >= 2.0.0'
pip install git+ssh://[email protected]/open-mmlab/[email protected]
pip install git+https://[email protected]/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install -r requirements.txt
- when:
condition:
equal: [ "1.13.0", << parameters.torch >> ]
steps:
- run: pip install timm
- when:
condition:
equal: [ "1.6.0", << parameters.torch >> ]
steps:
- run: pip install timm==0.6.7
- run:
name: Install timm
command: |
pip install timm
- when:
condition:
equal: [ "0.10.0", << parameters.torchvision >> ]
Expand All @@ -98,7 +93,7 @@ jobs:
type: string
cuda:
type: enum
enum: ["11.0"]
enum: ["11.1"]
cudnn:
type: integer
default: 8
Expand Down Expand Up @@ -129,6 +124,7 @@ jobs:
docker exec mmaction pip install -U openmim
docker exec mmaction mim install 'mmcv >= 2.0.0'
docker exec mmaction pip install git+https://[email protected]/open-mmlab/[email protected]
docker exec mmaction pip install git+https://[email protected]/open-mmlab/[email protected]
docker exec mmaction pip install git+https://github.com/open-mmlab/[email protected]
docker exec mmaction pip install -r requirements.txt
- run:
Expand All @@ -141,7 +137,6 @@ jobs:
docker exec mmaction pytest tests/
workflows:
pr_stage_lint:
when: << pipeline.parameters.lint_only >>
jobs:
- lint:
name: lint
Expand All @@ -164,8 +159,8 @@ workflows:
- main
- build_cpu:
name: minimum_version_cpu
torch: 1.6.0
torchvision: 0.7.0
torch: 1.8.1
torchvision: 0.9.1
python: 3.7.4
requires:
- lint
Expand All @@ -185,7 +180,7 @@ workflows:
torch: 1.8.1
# Use double quotation mark to explicitly specify its type
# as string instead of number
cuda: "11.0"
cuda: "11.1"
requires:
- hold
merge_stage_test:
Expand All @@ -195,10 +190,10 @@ workflows:
jobs:
- build_cuda:
name: minimum_version_gpu
torch: 1.7.1
torch: 1.8.1
# Use double quotation mark to explicitly specify its type
# as string instead of number
cuda: "11.0"
cuda: "11.1"
filters:
branches:
only:
Expand Down
23 changes: 12 additions & 11 deletions .github/workflows/merge_stage_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ jobs:
run: pip install git+https://github.com/open-mmlab/[email protected]
- name: Install MMCls
run: pip install git+https://github.com/open-mmlab/[email protected]
- name: Install MMPose
run: pip install git+https://github.com/open-mmlab/[email protected]
- name: Install PytorchVideo
run: pip install pytorchvideo
if: ${{matrix.torchvision == '0.10.0'}}
Expand All @@ -78,12 +80,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, 1.12.1]
torch: [1.8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.1]
include:
- torch: 1.6.0
torchvision: 0.7.0
- torch: 1.7.1
torchvision: 0.8.2
- torch: 1.8.1
torchvision: 0.9.1
- torch: 1.9.1
Expand All @@ -108,12 +106,8 @@ jobs:
run: pip install librosa soundfile
- name: Install lmdb
run: pip install lmdb
- name: Install timm
run: pip install timm==0.6.7
if: ${{matrix.torch == '1.6.0'}}
- name: Install timm
run: pip install timm
if: ${{matrix.torch != '1.6.0'}}
- name: Install TurboJpeg lib
run: sudo apt-get install -y libturbojpeg
- name: Install PyTorch
Expand All @@ -128,6 +122,8 @@ jobs:
run: pip install git+https://github.com/open-mmlab/[email protected]
- name: Install MMCls
run: pip install git+https://github.com/open-mmlab/[email protected]
- name: Install MMPose
run: pip install git+https://github.com/open-mmlab/[email protected]
- name: Install unittest dependencies
run: pip install -r requirements.txt
- name: Install PytorchVideo
Expand Down Expand Up @@ -190,6 +186,7 @@ jobs:
mim install 'mmcv >= 2.0.0'
pip install git+https://github.com/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install -r requirements.txt
- name: Install PytorchVideo
run: pip install pytorchvideo
Expand All @@ -214,7 +211,10 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Upgrade pip
run: pip install pip --upgrade
run: |
python -V
python -m pip install pip --upgrade
python -m pip install wheel
- name: Install librosa and soundfile
run: python -m pip install librosa soundfile
- name: Install lmdb
Expand All @@ -228,14 +228,15 @@ jobs:
mim install 'mmcv >= 2.0.0'
pip install git+https://github.com/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install -r requirements.txt
- name: Install PytorchVideo
run: python -m pip install pytorchvideo
- name: Install timm
run: python -m pip install timm
- name: Build and install
run: |
pip install -e .
pip install -e . -v
- name: Run unittests and generate coverage report
run: |
pytest tests/
8 changes: 6 additions & 2 deletions .github/workflows/pr_stage_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade && pip install wheel
run: pip install pip --upgrade && pip install wheel
- name: Install soundfile lib
run: sudo apt-get install -y libsndfile1
- name: Install librosa and soundfile
Expand All @@ -51,6 +51,8 @@ jobs:
run: pip install git+https://github.com/open-mmlab/[email protected]
- name: Install MMCls
run: pip install git+https://github.com/open-mmlab/[email protected]
- name: Install MMPose
run: pip install git+https://github.com/open-mmlab/[email protected]
- name: Install unittest dependencies
run: pip install -r requirements.txt
- name: Install PytorchVideo
Expand Down Expand Up @@ -95,7 +97,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade && pip install wheel
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
Expand All @@ -117,6 +119,7 @@ jobs:
mim install 'mmcv >= 2.0.0'
pip install git+https://github.com/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install -r requirements.txt
- name: Install PytorchVideo
run: pip install pytorchvideo
Expand Down Expand Up @@ -165,6 +168,7 @@ jobs:
mim install 'mmcv >= 2.0.0'
pip install git+https://github.com/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install git+https://github.com/open-mmlab/[email protected]
pip install -r requirements.txt
- name: Install PytorchVideo
run: python -m pip install pytorchvideo
Expand Down
12 changes: 10 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,16 @@ instance/
# Scrapy stuff:
.scrapy

# Sphinx documentation
# Auto generate documentation
docs/*/_build/
docs/*/model_zoo/
docs/*/dataset_zoo/
docs/*/_model_zoo.rst
docs/*/modelzoo_statistics.md
docs/*/datasetzoo_statistics.md
docs/*/projectzoo.md
docs/*/papers/
docs/*/api/generated/

# PyBuilder
target/
Expand Down Expand Up @@ -133,11 +141,11 @@ work_dirs/
!tests/data/**/*.pth

# avoid soft links created by MIM
mmaction/configs/*
mmaction/tools/*

*.ipynb

# unignore ipython notebook files in demo
!demo/*.ipynb
!projects/stad_tutorial/*.ipynb
mmaction/.mim
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ repos:
rev: v2.1.0
hooks:
- id: codespell
args: ["--skip", "*.ipynb", "-L", "Gool,tread,gool,mot"]
args: ["--skip", "*.ipynb", "-L", "ECT,Gool,tread,gool,mot"]
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.14
hooks:
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 2
build:
os: ubuntu-22.04
tools:
python: "3.7"
python: "3.9"

formats:
- epub
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include mmaction/.mim/model-index.yml
include mmaction/.mim/dataset-index.yml
recursive-include mmaction/.mim/configs *.py *.yml
recursive-include mmaction/.mim/tools *.sh *.py
Loading

0 comments on commit f2637ee

Please sign in to comment.