-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
219 changed files
with
14,293 additions
and
3,559 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -66,12 +66,17 @@ jobs: | |
mim install 'mmcv >= 2.0.0' | ||
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/mmpretrain.git@dev | ||
pip install git+https://github.com/open-mmlab/[email protected] | ||
pip install -r requirements.txt | ||
- run: | ||
name: Install timm | ||
command: | | ||
pip install timm | ||
- run: | ||
name: Install transformers | ||
command: | | ||
pip install transformers | ||
- when: | ||
condition: | ||
equal: [ "0.10.0", << parameters.torchvision >> ] | ||
|
@@ -117,6 +122,10 @@ jobs: | |
command: | | ||
docker exec mmaction pip install timm | ||
docker exec mmaction python -m pip install pytorchvideo | ||
- run: | ||
name: Install transformers | ||
command: | | ||
docker exec mmaction pip install transformers | ||
- run: | ||
name: Install mmaction dependencies | ||
command: | | ||
|
@@ -126,6 +135,7 @@ jobs: | |
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 git+https://github.com/open-mmlab/mmpretrain.git@dev | ||
docker exec mmaction pip install -r requirements.txt | ||
- run: | ||
name: Build and install | ||
|
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 |
---|---|---|
|
@@ -60,13 +60,17 @@ 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 MMPretrain | ||
run: pip install git+https://github.com/open-mmlab/mmpretrain.git@dev | ||
- 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'}} | ||
- name: Install timm | ||
run: pip install timm | ||
- name: Install transformers | ||
run: pip install transformers | ||
- name: Build and install | ||
run: rm -rf .eggs && pip install -e . | ||
- name: Run unittests and generate coverage report | ||
|
@@ -108,6 +112,8 @@ jobs: | |
run: pip install lmdb | ||
- name: Install timm | ||
run: pip install timm | ||
- name: Install transformers | ||
run: pip install transformers | ||
- name: Install TurboJpeg lib | ||
run: sudo apt-get install -y libturbojpeg | ||
- name: Install PyTorch | ||
|
@@ -122,6 +128,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 MMPretrain | ||
run: pip install git+https://github.com/open-mmlab/mmpretrain.git@dev | ||
- name: Install MMPose | ||
run: pip install git+https://github.com/open-mmlab/[email protected] | ||
- name: Install unittest dependencies | ||
|
@@ -179,13 +187,16 @@ jobs: | |
run: pip install librosa soundfile | ||
- name: Install lmdb | ||
run: pip install lmdb | ||
- name: Install transformers | ||
run: pip install transformers | ||
- name: Install mmaction dependencies | ||
run: | | ||
pip install git+https://github.com/open-mmlab/mmengine.git@main | ||
pip install -U openmim | ||
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/mmpretrain.git@dev | ||
pip install git+https://github.com/open-mmlab/[email protected] | ||
pip install -r requirements.txt | ||
- name: Install PytorchVideo | ||
|
@@ -228,12 +239,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/mmpretrain.git@dev | ||
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: Install transformers | ||
run: python -m pip install transformers | ||
- name: Build and install | ||
run: | | ||
pip install -e . -v | ||
|
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 |
---|---|---|
|
@@ -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 MMPretrain | ||
run: pip install git+https://github.com/open-mmlab/mmpretrain.git@dev | ||
- name: Install MMPose | ||
run: pip install git+https://github.com/open-mmlab/[email protected] | ||
- name: Install unittest dependencies | ||
|
@@ -119,6 +121,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/mmpretrain.git@dev | ||
pip install git+https://github.com/open-mmlab/[email protected] | ||
pip install -r requirements.txt | ||
- name: Install PytorchVideo | ||
|
@@ -168,6 +171,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/mmpretrain.git@dev | ||
pip install git+https://github.com/open-mmlab/[email protected] | ||
pip install -r requirements.txt | ||
- name: Install PytorchVideo | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# model settings | ||
preprocess_cfg = dict( | ||
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375]) | ||
|
||
checkpoint = ('https://download.openmmlab.com/mmclassification/' | ||
'v0/mobileone/mobileone-s4_8xb32_in1k_20221110-28d888cb.pth') | ||
model = dict( | ||
type='Recognizer2D', | ||
backbone=dict( | ||
type='MobileOneTSM', | ||
arch='s4', | ||
shift_div=8, | ||
num_segments=8, | ||
is_shift=True, | ||
init_cfg=dict( | ||
type='Pretrained', checkpoint=checkpoint, prefix='backbone')), | ||
cls_head=dict( | ||
type='TSMHead', | ||
num_segments=8, | ||
num_classes=400, | ||
in_channels=2048, | ||
spatial_type='avg', | ||
consensus=dict(type='AvgConsensus', dim=1), | ||
dropout_ratio=0.5, | ||
init_std=0.001, | ||
is_shift=True, | ||
average_clips='prob'), | ||
# model training and testing settings | ||
data_preprocessor=dict(type='ActionDataPreprocessor', **preprocess_cfg), | ||
train_cfg=None, | ||
test_cfg=None) |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
checkpoint = ('https://download.openmmlab.com/mmclassification/' | ||
'v0/mobileone/mobileone-s0_8xb32_in1k_20221110-0bc94952.pth') | ||
model = dict( | ||
type='Recognizer2D', | ||
backbone=dict( | ||
type='mmpretrain.MobileOne', | ||
arch='s0', | ||
init_cfg=dict( | ||
type='Pretrained', checkpoint=checkpoint, prefix='backbone'), | ||
norm_eval=False), | ||
cls_head=dict( | ||
type='TSNHead', | ||
num_classes=400, | ||
in_channels=1024, | ||
spatial_type='avg', | ||
consensus=dict(type='AvgConsensus', dim=1), | ||
dropout_ratio=0.4, | ||
init_std=0.01, | ||
average_clips='prob'), | ||
data_preprocessor=dict( | ||
type='ActionDataPreprocessor', | ||
mean=[123.675, 116.28, 103.53], | ||
std=[58.395, 57.12, 57.375], | ||
format_shape='NCHW'), | ||
train_cfg=None, | ||
test_cfg=None) |
This file was deleted.
Oops, something went wrong.
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
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
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.