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
ResNet50_tensorflow
Commits
d03f4fb6
Commit
d03f4fb6
authored
Jul 29, 2020
by
syiming
Browse files
remove unused check
parent
4dcc11d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
...ect_detection/meta_architectures/faster_rcnn_meta_arch.py
+1
-3
No files found.
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
View file @
d03f4fb6
...
@@ -1373,9 +1373,7 @@ class FasterRCNNMetaArch(model.DetectionModel):
...
@@ -1373,9 +1373,7 @@ class FasterRCNNMetaArch(model.DetectionModel):
"""
"""
num_anchors_per_location
=
(
num_anchors_per_location
=
(
self
.
_first_stage_anchor_generator
.
num_anchors_per_location
())
self
.
_first_stage_anchor_generator
.
num_anchors_per_location
())
# if len(num_anchors_per_location) != 1:
# raise RuntimeError('anchor_generator is expected to generate anchors '
# 'corresponding to a single feature map.')
if
self
.
_first_stage_box_predictor
.
is_keras_model
:
if
self
.
_first_stage_box_predictor
.
is_keras_model
:
box_predictions
=
self
.
_first_stage_box_predictor
(
box_predictions
=
self
.
_first_stage_box_predictor
(
rpn_box_predictor_features
)
rpn_box_predictor_features
)
...
...
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