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
3cde342f
Commit
3cde342f
authored
Sep 03, 2020
by
A. Unique TensorFlower
Committed by
TF Object Detection Team
Sep 03, 2020
Browse files
Fix the negative box size that could potentially trigger error.
PiperOrigin-RevId: 329957156
parent
575684c0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
research/object_detection/meta_architectures/center_net_meta_arch.py
...ject_detection/meta_architectures/center_net_meta_arch.py
+1
-0
No files found.
research/object_detection/meta_architectures/center_net_meta_arch.py
View file @
3cde342f
...
...
@@ -311,6 +311,7 @@ def prediction_tensors_to_boxes(detection_scores, y_indices, x_indices,
height_width
=
tf
.
gather
(
height_width_flat
,
peak_spatial_indices
,
batch_dims
=
1
)
height_width
=
tf
.
maximum
(
height_width
,
0
)
offsets
=
tf
.
gather
(
offsets_flat
,
peak_spatial_indices
,
batch_dims
=
1
)
heights
,
widths
=
tf
.
unstack
(
height_width
,
axis
=
2
)
...
...
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