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
c68890db
Commit
c68890db
authored
Dec 10, 2019
by
Jiangmiao Pang
Committed by
Kai Chen
Dec 10, 2019
Browse files
Fix IoU sampling (#1784)
parent
b7894cbd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
mmdet/core/bbox/samplers/iou_balanced_neg_sampler.py
mmdet/core/bbox/samplers/iou_balanced_neg_sampler.py
+2
-0
No files found.
mmdet/core/bbox/samplers/iou_balanced_neg_sampler.py
View file @
c68890db
...
@@ -98,6 +98,8 @@ class IoUBalancedNegSampler(RandomSampler):
...
@@ -98,6 +98,8 @@ class IoUBalancedNegSampler(RandomSampler):
floor_set
=
set
()
floor_set
=
set
()
iou_sampling_set
=
set
(
iou_sampling_set
=
set
(
np
.
where
(
max_overlaps
>
self
.
floor_thr
)[
0
])
np
.
where
(
max_overlaps
>
self
.
floor_thr
)[
0
])
# for sampling interval calculation
self
.
floor_thr
==
0
floor_neg_inds
=
list
(
floor_set
&
neg_set
)
floor_neg_inds
=
list
(
floor_set
&
neg_set
)
iou_sampling_neg_inds
=
list
(
iou_sampling_set
&
neg_set
)
iou_sampling_neg_inds
=
list
(
iou_sampling_set
&
neg_set
)
...
...
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