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
50d15052
Unverified
Commit
50d15052
authored
May 28, 2022
by
gy77
Committed by
GitHub
May 28, 2022
Browse files
Add type hint in mmcv/ops/points_in_polygons.py (#2013)
parent
335199db
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
mmcv/ops/points_in_polygons.py
mmcv/ops/points_in_polygons.py
+2
-1
No files found.
mmcv/ops/points_in_polygons.py
View file @
50d15052
import
torch
from
torch
import
Tensor
from
..utils
import
ext_loader
ext_module
=
ext_loader
.
load_ext
(
'_ext'
,
[
'points_in_polygons_forward'
])
def
points_in_polygons
(
points
,
polygons
)
:
def
points_in_polygons
(
points
:
Tensor
,
polygons
:
Tensor
)
->
Tensor
:
"""Judging whether points are inside polygons, which is used in the ATSS
assignment for the rotated boxes.
...
...
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