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
73a36682
Unverified
Commit
73a36682
authored
Jan 17, 2019
by
Kai Chen
Committed by
GitHub
Jan 17, 2019
Browse files
Merge pull request #267 from hellock/hotfix
bug fix for api changes
parents
95d44cc1
6ea01274
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
mmdet/models/detectors/cascade_rcnn.py
mmdet/models/detectors/cascade_rcnn.py
+3
-3
No files found.
mmdet/models/detectors/cascade_rcnn.py
View file @
73a36682
...
...
@@ -39,7 +39,7 @@ class CascadeRCNN(BaseDetector, RPNTestMixin):
raise
NotImplementedError
if
rpn_head
is
not
None
:
self
.
rpn_head
=
builder
.
build_
anchor_
head
(
rpn_head
)
self
.
rpn_head
=
builder
.
build_head
(
rpn_head
)
if
bbox_head
is
not
None
:
self
.
bbox_roi_extractor
=
nn
.
ModuleList
()
...
...
@@ -54,7 +54,7 @@ class CascadeRCNN(BaseDetector, RPNTestMixin):
for
roi_extractor
,
head
in
zip
(
bbox_roi_extractor
,
bbox_head
):
self
.
bbox_roi_extractor
.
append
(
builder
.
build_roi_extractor
(
roi_extractor
))
self
.
bbox_head
.
append
(
builder
.
build_
bbox_
head
(
head
))
self
.
bbox_head
.
append
(
builder
.
build_head
(
head
))
if
mask_head
is
not
None
:
self
.
mask_roi_extractor
=
nn
.
ModuleList
()
...
...
@@ -69,7 +69,7 @@ class CascadeRCNN(BaseDetector, RPNTestMixin):
for
roi_extractor
,
head
in
zip
(
mask_roi_extractor
,
mask_head
):
self
.
mask_roi_extractor
.
append
(
builder
.
build_roi_extractor
(
roi_extractor
))
self
.
mask_head
.
append
(
builder
.
build_
mask_
head
(
head
))
self
.
mask_head
.
append
(
builder
.
build_head
(
head
))
self
.
train_cfg
=
train_cfg
self
.
test_cfg
=
test_cfg
...
...
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