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
d309fff8
"vscode:/vscode.git/clone" did not exist on "7536f647e4144c7acaf9e140893ff7edb85bf9a3"
Commit
d309fff8
authored
Oct 15, 2022
by
A. Unique TensorFlower
Browse files
Internal change
PiperOrigin-RevId: 481405783
parent
e7027fec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
official/vision/utils/object_detection/visualization_utils.py
...cial/vision/utils/object_detection/visualization_utils.py
+2
-2
No files found.
official/vision/utils/object_detection/visualization_utils.py
View file @
d309fff8
...
...
@@ -679,7 +679,7 @@ def add_cdf_image_summary(values, name):
np
.
arange
(
cumulative_values
.
size
,
dtype
=
np
.
float32
)
/
cumulative_values
.
size
)
fig
=
plt
.
figure
(
frameon
=
False
)
ax
=
fig
.
add_subplot
(
'111'
)
ax
=
fig
.
add_subplot
(
1
,
1
,
1
)
ax
.
plot
(
fraction_of_examples
,
cumulative_values
)
ax
.
set_ylabel
(
'cumulative normalized values'
)
ax
.
set_xlabel
(
'fraction of examples'
)
...
...
@@ -708,7 +708,7 @@ def add_hist_image_summary(values, bins, name):
def
hist_plot
(
values
,
bins
):
"""Numpy function to plot hist."""
fig
=
plt
.
figure
(
frameon
=
False
)
ax
=
fig
.
add_subplot
(
'111'
)
ax
=
fig
.
add_subplot
(
1
,
1
,
1
)
y
,
x
=
np
.
histogram
(
values
,
bins
=
bins
)
ax
.
plot
(
x
[:
-
1
],
y
)
ax
.
set_ylabel
(
'count'
)
...
...
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