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
b932030c
Commit
b932030c
authored
Dec 12, 2018
by
yhcao6
Browse files
remove useless assign_results
parent
c29ebbc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
mmdet/models/detectors/two_stage.py
mmdet/models/detectors/two_stage.py
+0
-2
No files found.
mmdet/models/detectors/two_stage.py
View file @
b932030c
...
...
@@ -106,7 +106,6 @@ class TwoStageDetector(BaseDetector, RPNTestMixin, BBoxTestMixin,
bbox_sampler
=
build_sampler
(
self
.
train_cfg
.
rcnn
.
sampler
,
context
=
self
)
num_imgs
=
img
.
size
(
0
)
assign_results
=
[]
sampling_results
=
[]
for
i
in
range
(
num_imgs
):
assign_result
=
bbox_assigner
.
assign
(
...
...
@@ -118,7 +117,6 @@ class TwoStageDetector(BaseDetector, RPNTestMixin, BBoxTestMixin,
gt_bboxes
[
i
],
gt_labels
[
i
],
feats
=
[
lvl_feat
[
i
][
None
]
for
lvl_feat
in
x
])
assign_results
.
append
(
assign_result
)
sampling_results
.
append
(
sampling_result
)
# bbox head forward and loss
...
...
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