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
2c68e545
Commit
2c68e545
authored
Oct 22, 2018
by
Kai Chen
Browse files
api version fix
parent
d08a9ec2
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
configs/retinanet_r50_fpn_1x.py
configs/retinanet_r50_fpn_1x.py
+2
-3
mmdet/core/anchor/anchor_target.py
mmdet/core/anchor/anchor_target.py
+2
-2
No files found.
configs/retinanet_r50_fpn_1x.py
View file @
2c68e545
...
...
@@ -30,9 +30,8 @@ model = dict(
target_stds
=
[
1.0
,
1.0
,
1.0
,
1.0
]))
# training and testing settings
train_cfg
=
dict
(
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.4
,
min_pos_iou
=
0.4
,
assigner
=
dict
(
pos_iou_thr
=
0.5
,
neg_iou_thr
=
0.4
,
min_pos_iou
=
0.4
,
ignore_iof_thr
=-
1
),
smoothl1_beta
=
0.11
,
gamma
=
2.0
,
alpha
=
0.25
,
...
...
mmdet/core/anchor/anchor_target.py
View file @
2c68e545
...
...
@@ -121,8 +121,8 @@ def anchor_target_single(flat_anchors,
num_valid_anchors
=
anchors
.
shape
[
0
]
bbox_targets
=
torch
.
zeros_like
(
anchors
)
bbox_weights
=
torch
.
zeros_like
(
anchors
)
labels
=
anchor
s
.
new_zeros
(
(
num_valid_anchors
,
)
)
label_weights
=
anchor
s
.
new_zeros
(
(
num_valid_anchors
,
)
)
labels
=
gt_label
s
.
new_zeros
(
num_valid_anchors
)
label_weights
=
gt_label
s
.
new_zeros
(
num_valid_anchors
,
dtype
=
torch
.
float
)
pos_inds
=
sampling_result
.
pos_inds
neg_inds
=
sampling_result
.
neg_inds
...
...
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