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
93da8e77
Commit
93da8e77
authored
Mar 10, 2021
by
Vivek Rathod
Committed by
TF Object Detection Team
Mar 10, 2021
Browse files
Add explicit static shapes to prevent export errors.
PiperOrigin-RevId: 362204802
parent
3570bd34
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
research/object_detection/meta_architectures/center_net_meta_arch.py
...ject_detection/meta_architectures/center_net_meta_arch.py
+2
-2
No files found.
research/object_detection/meta_architectures/center_net_meta_arch.py
View file @
93da8e77
...
...
@@ -375,10 +375,10 @@ def prediction_tensors_to_boxes(detection_scores, y_indices, x_indices,
tf
.
reshape
(
x_indices
,
[
-
1
])
],
axis
=
1
)
new_height_width
=
tf
.
gather_nd
(
height_width_predictions
,
combined_indices
)
new_height_width
=
tf
.
reshape
(
new_height_width
,
[
batch_size
,
num_boxes
,
-
1
])
new_height_width
=
tf
.
reshape
(
new_height_width
,
[
batch_size
,
num_boxes
,
2
])
new_offsets
=
tf
.
gather_nd
(
offset_predictions
,
combined_indices
)
offsets
=
tf
.
reshape
(
new_offsets
,
[
batch_size
,
num_boxes
,
-
1
])
offsets
=
tf
.
reshape
(
new_offsets
,
[
batch_size
,
num_boxes
,
2
])
y_indices
=
_to_float32
(
y_indices
)
x_indices
=
_to_float32
(
x_indices
)
...
...
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