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
677aaa11
Commit
677aaa11
authored
Jun 02, 2021
by
Austin Myers
Committed by
TF Object Detection Team
Jun 02, 2021
Browse files
Enables combined static and dynamic shape for the batch size in 'MultiLevelRoIAlign'
PiperOrigin-RevId: 377103499
parent
213a9649
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
research/object_detection/utils/spatial_transform_ops.py
research/object_detection/utils/spatial_transform_ops.py
+2
-1
No files found.
research/object_detection/utils/spatial_transform_ops.py
View file @
677aaa11
...
...
@@ -19,6 +19,7 @@ from __future__ import division
from
__future__
import
print_function
import
tensorflow.compat.v1
as
tf
from
object_detection.utils
import
shape_utils
def
_coordinate_vector_1d
(
start
,
end
,
size
,
align_endpoints
):
...
...
@@ -322,7 +323,7 @@ def multilevel_roi_align(features, boxes, box_levels, output_size,
"""
with
tf
.
name_scope
(
scope
,
'MultiLevelRoIAlign'
):
features
,
true_feature_shapes
=
pad_to_max_size
(
features
)
batch_size
=
tf
.
shape
(
features
)[
0
]
batch_size
=
shape_utils
.
combined_static_and_dynamic_
shape
(
features
)[
0
]
num_levels
=
features
.
get_shape
().
as_list
()[
1
]
max_feature_height
=
tf
.
shape
(
features
)[
2
]
max_feature_width
=
tf
.
shape
(
features
)[
3
]
...
...
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