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
MMCV
Commits
4004a3d7
Unverified
Commit
4004a3d7
authored
Jul 04, 2020
by
Kai Chen
Committed by
GitHub
Jul 04, 2020
Browse files
update pre-commit hook config (#384)
parent
63b7aa31
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
.pre-commit-config.yaml
.pre-commit-config.yaml
+4
-3
mmcv/ops/wrappers.py
mmcv/ops/wrappers.py
+4
-5
No files found.
.pre-commit-config.yaml
View file @
4004a3d7
exclude
:
^tests/data/
exclude
:
^tests/data/
repos
:
repos
:
-
repo
:
https://gitlab.com/pycqa/flake8.git
-
repo
:
https://gitlab.com/pycqa/flake8.git
rev
:
3.8.
0
rev
:
3.8.
3
hooks
:
hooks
:
-
id
:
flake8
-
id
:
flake8
-
repo
:
https://github.com/asottile/seed-isort-config
-
repo
:
https://github.com/asottile/seed-isort-config
rev
:
v2.
1
.0
rev
:
v2.
2
.0
hooks
:
hooks
:
-
id
:
seed-isort-config
-
id
:
seed-isort-config
-
repo
:
https://github.com/timothycrosley/isort
-
repo
:
https://github.com/timothycrosley/isort
...
@@ -17,13 +17,14 @@ repos:
...
@@ -17,13 +17,14 @@ repos:
hooks
:
hooks
:
-
id
:
yapf
-
id
:
yapf
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v
2.5
.0
rev
:
v
3.1
.0
hooks
:
hooks
:
-
id
:
trailing-whitespace
-
id
:
trailing-whitespace
-
id
:
check-yaml
-
id
:
check-yaml
-
id
:
end-of-file-fixer
-
id
:
end-of-file-fixer
-
id
:
requirements-txt-fixer
-
id
:
requirements-txt-fixer
-
id
:
double-quote-string-fixer
-
id
:
double-quote-string-fixer
-
id
:
check-merge-conflict
-
id
:
fix-encoding-pragma
-
id
:
fix-encoding-pragma
args
:
[
"
--remove"
]
args
:
[
"
--remove"
]
-
id
:
mixed-line-ending
-
id
:
mixed-line-ending
...
...
mmcv/ops/wrappers.py
View file @
4004a3d7
"""Modified from https://github.com/facebookresearch/detectron2/blob/master
.
r
"""Modified from https://github.com/facebookresearch/detectron2/blob/master
/detectron2/layers/wrappers.py # noqa: E501
/detectron2/layers/wrappers.py Wrap some nn modules to support empty
Wrap some nn modules to support empty tensor input. Currently, these wrappers
tensor input. Currently, these wrappers are mainly used in mask heads
are mainly used in mask heads like fcn_mask_head and maskiou_heads since mask
like fcn_mask_head and maskiou_heads since mask heads are trained on
heads are trained on only positive RoIs.
only positive RoIs.
"""
"""
import
math
import
math
...
...
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