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
12bbefce
Commit
12bbefce
authored
Oct 25, 2021
by
Vighnesh Birodkar
Committed by
TF Object Detection Team
Oct 25, 2021
Browse files
Attempt to fix gh issue #10330
PiperOrigin-RevId: 405458782
parent
a671a5a6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
research/object_detection/utils/ops.py
research/object_detection/utils/ops.py
+1
-1
No files found.
research/object_detection/utils/ops.py
View file @
12bbefce
...
...
@@ -811,7 +811,7 @@ def reframe_image_corners_relative_to_boxes(boxes):
Returns:
reframed_boxes: Reframes boxes with same shape as input.
"""
ymin
,
xmin
,
ymax
,
xmax
=
tf
.
unstack
(
boxes
,
axis
=
1
)
ymin
,
xmin
,
ymax
,
xmax
=
(
boxes
[:,
0
],
boxes
[:,
1
],
boxes
[:,
2
],
boxes
[:,
3
]
)
height
=
tf
.
maximum
(
ymax
-
ymin
,
1e-4
)
width
=
tf
.
maximum
(
xmax
-
xmin
,
1e-4
)
...
...
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