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
9cd7a576
Commit
9cd7a576
authored
Nov 15, 2021
by
Yeqing Li
Committed by
A. Unique TensorFlower
Nov 15, 2021
Browse files
Internal change
PiperOrigin-RevId: 410121249
parent
4151365b
Changes
21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
official/vision/utils/object_detection/visualization_utils.py
...cial/vision/utils/object_detection/visualization_utils.py
+4
-4
No files found.
official/vision/
detection/
utils/object_detection/visualization_utils.py
→
official/vision/utils/object_detection/visualization_utils.py
View file @
9cd7a576
...
...
@@ -34,8 +34,8 @@ import PIL.ImageFont as ImageFont
import
six
import
tensorflow
as
tf
from
official.vision.
d
et
ection.util
s
import
box_
util
s
from
official.vision.
detection.
utils.object_detection
import
shape_utils
from
official.vision.
b
et
a.op
s
import
box_
op
s
from
official.vision.utils.object_detection
import
shape_utils
_TITLE_LEFT_MARGIN
=
10
_TITLE_TOP_MARGIN
=
10
...
...
@@ -107,8 +107,8 @@ def visualize_images_with_bounding_boxes(images, box_outputs, step,
image_shape
=
tf
.
shape
(
images
[
0
])
image_height
=
tf
.
cast
(
image_shape
[
0
],
tf
.
float32
)
image_width
=
tf
.
cast
(
image_shape
[
1
],
tf
.
float32
)
normalized_boxes
=
box_
util
s
.
normalize_boxes
(
box_outputs
,
[
image_height
,
image_width
])
normalized_boxes
=
box_
op
s
.
normalize_boxes
(
box_outputs
,
[
image_height
,
image_width
])
bounding_box_color
=
tf
.
constant
([[
1.0
,
1.0
,
0.0
,
1.0
]])
image_summary
=
tf
.
image
.
draw_bounding_boxes
(
...
...
Prev
1
2
Next
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