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
9d6d3cfb
".github/git@developer.sourcefind.cn:change/sglang.git" did not exist on "44733203800d80648862a6f7f879bc422967366f"
Commit
9d6d3cfb
authored
Jul 17, 2020
by
syiming
Browse files
Merge
parent
f190597d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
...ect_detection/meta_architectures/faster_rcnn_meta_arch.py
+2
-3
No files found.
research/object_detection/meta_architectures/faster_rcnn_meta_arch.py
View file @
9d6d3cfb
...
@@ -1949,11 +1949,10 @@ class FasterRCNNMetaArch(model.DetectionModel):
...
@@ -1949,11 +1949,10 @@ class FasterRCNNMetaArch(model.DetectionModel):
Returns:
Returns:
A float32 tensor with shape [K, new_height, new_width, depth].
A float32 tensor with shape [K, new_height, new_width, depth].
"""
"""
features_to_crop
=
[
features_to_crop
]
num_levels
=
len
(
features_to_crop
)
num_levels
=
len
(
features_to_crop
)
box_levels
=
None
box_levels
=
None
if
num_levels
!=
1
:
if
num_levels
!=
1
:
# If there are mu
l
tiple levels to select, get the box levels
# If there are mutiple levels to select, get the box levels
box_levels
=
ops
.
fpn_feature_levels
(
num_levels
,
num_levels
-
1
,
box_levels
=
ops
.
fpn_feature_levels
(
num_levels
,
num_levels
-
1
,
1.0
/
224
,
proposal_boxes_normalized
)
1.0
/
224
,
proposal_boxes_normalized
)
cropped_regions
=
self
.
_flatten_first_two_dimensions
(
cropped_regions
=
self
.
_flatten_first_two_dimensions
(
...
...
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