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
65c3ebca
Commit
65c3ebca
authored
Oct 03, 2018
by
Kai Chen
Browse files
add min_pos_iou config field for train_cfg.rcnn
parent
323f430e
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
1 deletion
+3
-1
mmdet/models/roi_extractors/single_level.py
mmdet/models/roi_extractors/single_level.py
+1
-1
tools/configs/r50_fpn_frcnn_1x.py
tools/configs/r50_fpn_frcnn_1x.py
+1
-0
tools/configs/r50_fpn_maskrcnn_1x.py
tools/configs/r50_fpn_maskrcnn_1x.py
+1
-0
No files found.
mmdet/models/roi_extractors/single_level.py
View file @
65c3ebca
...
@@ -57,7 +57,7 @@ class SingleLevelRoI(nn.Module):
...
@@ -57,7 +57,7 @@ class SingleLevelRoI(nn.Module):
proposals
=
proposals
[:,
:
4
]
proposals
=
proposals
[:,
:
4
]
assigned_gt_inds
,
assigned_labels
,
argmax_overlaps
,
max_overlaps
=
\
assigned_gt_inds
,
assigned_labels
,
argmax_overlaps
,
max_overlaps
=
\
bbox_assign
(
proposals
,
gt_bboxes
,
gt_crowds
,
gt_labels
,
bbox_assign
(
proposals
,
gt_bboxes
,
gt_crowds
,
gt_labels
,
cfg
.
pos_iou_thr
,
cfg
.
neg_iou_thr
,
cfg
.
pos_iou
_thr
,
cfg
.
crowd_thr
)
cfg
.
pos_iou_thr
,
cfg
.
neg_iou_thr
,
cfg
.
min_
pos_iou
,
cfg
.
crowd_thr
)
if
cfg
.
add_gt_as_proposals
:
if
cfg
.
add_gt_as_proposals
:
proposals
=
torch
.
cat
([
gt_bboxes
,
proposals
],
dim
=
0
)
proposals
=
torch
.
cat
([
gt_bboxes
,
proposals
],
dim
=
0
)
...
...
tools/configs/r50_fpn_frcnn_1x.py
View file @
65c3ebca
...
@@ -65,6 +65,7 @@ train_cfg = dict(
...
@@ -65,6 +65,7 @@ train_cfg = dict(
pos_balance_sampling
=
False
,
pos_balance_sampling
=
False
,
neg_pos_ub
=
512
,
neg_pos_ub
=
512
,
neg_balance_thr
=
0
,
neg_balance_thr
=
0
,
min_pos_iou
=
1.1
,
pos_weight
=-
1
,
pos_weight
=-
1
,
debug
=
False
))
debug
=
False
))
test_cfg
=
dict
(
test_cfg
=
dict
(
...
...
tools/configs/r50_fpn_maskrcnn_1x.py
View file @
65c3ebca
...
@@ -77,6 +77,7 @@ train_cfg = dict(
...
@@ -77,6 +77,7 @@ train_cfg = dict(
pos_balance_sampling
=
False
,
pos_balance_sampling
=
False
,
neg_pos_ub
=
512
,
neg_pos_ub
=
512
,
neg_balance_thr
=
0
,
neg_balance_thr
=
0
,
min_pos_iou
=
1.1
,
pos_weight
=-
1
,
pos_weight
=-
1
,
debug
=
False
))
debug
=
False
))
test_cfg
=
dict
(
test_cfg
=
dict
(
...
...
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