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/
repos
:
-
repo
:
https://gitlab.com/pycqa/flake8.git
rev
:
3.8.
0
rev
:
3.8.
3
hooks
:
-
id
:
flake8
-
repo
:
https://github.com/asottile/seed-isort-config
rev
:
v2.
1
.0
rev
:
v2.
2
.0
hooks
:
-
id
:
seed-isort-config
-
repo
:
https://github.com/timothycrosley/isort
...
...
@@ -17,13 +17,14 @@ repos:
hooks
:
-
id
:
yapf
-
repo
:
https://github.com/pre-commit/pre-commit-hooks
rev
:
v
2.5
.0
rev
:
v
3.1
.0
hooks
:
-
id
:
trailing-whitespace
-
id
:
check-yaml
-
id
:
end-of-file-fixer
-
id
:
requirements-txt-fixer
-
id
:
double-quote-string-fixer
-
id
:
check-merge-conflict
-
id
:
fix-encoding-pragma
args
:
[
"
--remove"
]
-
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
tensor input. Currently, these wrappers are mainly used in mask heads
like fcn_mask_head and maskiou_heads since mask heads are trained on
only positive RoIs.
Wrap some nn modules to support empty tensor input. Currently, these wrappers
are mainly used in mask heads like fcn_mask_head and maskiou_heads since mask
heads are trained on only positive RoIs.
"""
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