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
ModelZoo
SOLOv2-pytorch
Commits
b7aa30c2
Unverified
Commit
b7aa30c2
authored
Jan 22, 2019
by
Kai Chen
Committed by
GitHub
Jan 22, 2019
Browse files
Merge pull request #279 from qianyizhang/master
fix docstring
parents
f3a939fa
6c600c9e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
mmdet/core/bbox/assigners/max_iou_assigner.py
mmdet/core/bbox/assigners/max_iou_assigner.py
+2
-2
mmdet/core/bbox/geometry.py
mmdet/core/bbox/geometry.py
+1
-1
No files found.
mmdet/core/bbox/assigners/max_iou_assigner.py
View file @
b7aa30c2
...
@@ -88,8 +88,8 @@ class MaxIoUAssigner(BaseAssigner):
...
@@ -88,8 +88,8 @@ class MaxIoUAssigner(BaseAssigner):
"""Assign w.r.t. the overlaps of bboxes with gts.
"""Assign w.r.t. the overlaps of bboxes with gts.
Args:
Args:
overlaps (Tensor): Overlaps between
n
bboxes and
k gt_
bboxes,
overlaps (Tensor): Overlaps between
k gt_
bboxes and
n
bboxes,
shape(
n
,
k
).
shape(
k
,
n
).
gt_labels (Tensor, optional): Labels of k gt_bboxes, shape (k, ).
gt_labels (Tensor, optional): Labels of k gt_bboxes, shape (k, ).
Returns:
Returns:
...
...
mmdet/core/bbox/geometry.py
View file @
b7aa30c2
...
@@ -16,7 +16,7 @@ def bbox_overlaps(bboxes1, bboxes2, mode='iou', is_aligned=False):
...
@@ -16,7 +16,7 @@ def bbox_overlaps(bboxes1, bboxes2, mode='iou', is_aligned=False):
foreground).
foreground).
Returns:
Returns:
ious(Tensor): shape (
n
,
k
) if is_aligned == False else shape (
n
, 1)
ious(Tensor): shape (
m
,
n
) if is_aligned == False else shape (
m
, 1)
"""
"""
assert
mode
in
[
'iou'
,
'iof'
]
assert
mode
in
[
'iou'
,
'iof'
]
...
...
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