Skip to content

Commit

Permalink
[Feature] Add copyright checkhook in pre-commit-config.yaml (open-mml…
Browse files Browse the repository at this point in the history
…ab#1344)

* master

* master 0721

* add README

* check precommit

* check precommit
  • Loading branch information
gengenkai authored Dec 22, 2021
1 parent 364b54d commit 6fb9f47
Show file tree
Hide file tree
Showing 15 changed files with 32 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,9 @@ repos:
hooks:
- id: codespell
args: ["--skip", "*.ipynb,tools/data/hvu/label_map.json", "-L", "te,nd,thre,Gool,gool"]
- repo: https://github.com/open-mmlab/pre-commit-hooks
rev: v0.1.0 # Use the ref you want to point at
hooks:
- id: check-algo-readme
- id: check-copyright
args: ["mmaction", "tools", "tests"] # these directories will be checked
14 changes: 13 additions & 1 deletion configs/recognition_audio/resnet/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
# ResNet for Audio

## Introduction
## Abstract

<!-- [ABSTRACT] -->

We present Audiovisual SlowFast Networks, an archi-
tecture for integrated audiovisual perception. AVSlowFast has Slow and Fast visual pathways that are deeply inte- grated with a Faster Audio pathway to model vision and sound in a unified representation. We fuse audio and vi- sual features at multiple layers, enabling audio to con- tribute to the formation of hierarchical audiovisual con- cepts. To overcome training difficulties that arise from dif- ferent learning dynamics for audio and visual modalities, we introduce DropPathway, which randomly drops the Au- dio pathway during training as an effective regularization technique. Inspired by prior studies in neuroscience, we perform hierarchical audiovisual synchronization to learn joint audiovisual features. We report state-of-the-art results on six video action classification and detection datasets, perform detailed ablation studies, and show the gener- alization of AVSlowFast to learn self-supervised audiovi- sual features. Code will be made available at: https: //github.com/facebookresearch/SlowFast.

<!-- [IMAGE] -->
<div align=center>
<img src="https://user-images.githubusercontent.com/30782254/147050415-a30ad32a-ce52-452d-ac3d-91058c8d0cc9.png" width="800"/>
</div>

## Citation

<!-- [ALGORITHM] -->

Expand Down
1 change: 1 addition & 0 deletions mmaction/models/backbones/agcn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import math

import torch
Expand Down
1 change: 1 addition & 0 deletions mmaction/models/backbones/stgcn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import torch
import torch.nn as nn
from mmcv.cnn import constant_init, kaiming_init, normal_init
Expand Down
1 change: 1 addition & 0 deletions mmaction/models/heads/stgcn_head.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import torch.nn as nn
from mmcv.cnn import normal_init

Expand Down
1 change: 1 addition & 0 deletions mmaction/models/skeleton_gcn/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
from .base import BaseGCN
from .skeletongcn import SkeletonGCN

Expand Down
1 change: 1 addition & 0 deletions mmaction/models/skeleton_gcn/base.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
from abc import ABCMeta, abstractmethod
from collections import OrderedDict

Expand Down
1 change: 1 addition & 0 deletions mmaction/models/skeleton_gcn/skeletongcn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
from ..builder import RECOGNIZERS
from .base import BaseGCN

Expand Down
1 change: 1 addition & 0 deletions mmaction/models/skeleton_gcn/utils/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
from .graph import Graph

__all__ = ['Graph']
1 change: 1 addition & 0 deletions mmaction/models/skeleton_gcn/utils/graph.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import numpy as np


Expand Down
1 change: 1 addition & 0 deletions tests/test_models/test_recognizers/test_skeletongcn.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import pytest
import torch

Expand Down
1 change: 1 addition & 0 deletions tools/data/skeleton/babel2mma2.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
# In this example, we convert babel120_train to MMAction2 format
# The required files can be downloaded from the homepage of BABEL project
import numpy as np
Expand Down
1 change: 1 addition & 0 deletions tools/data/skeleton/gen_ntu_rgbd_raw.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import argparse
import math
import os
Expand Down
1 change: 1 addition & 0 deletions tools/deployment/mmaction2torchserve.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import shutil
from argparse import ArgumentParser, Namespace
from pathlib import Path
Expand Down
1 change: 1 addition & 0 deletions tools/deployment/mmaction_handler.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Copyright (c) OpenMMLab. All rights reserved.
import base64
import os
import os.path as osp
Expand Down

0 comments on commit 6fb9f47

Please sign in to comment.