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
671615c4
Commit
671615c4
authored
Jan 11, 2022
by
Khanh LeViet
Committed by
TF Object Detection Team
Jan 11, 2022
Browse files
Change TF ODT API tests to run on Python 3.7.
PiperOrigin-RevId: 421046167
parent
ba8a7c10
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
research/object_detection/utils/visualization_utils.py
research/object_detection/utils/visualization_utils.py
+2
-2
No files found.
research/object_detection/utils/visualization_utils.py
View file @
671615c4
...
@@ -1294,7 +1294,7 @@ def add_cdf_image_summary(values, name):
...
@@ -1294,7 +1294,7 @@ def add_cdf_image_summary(values, name):
fraction_of_examples
=
(
np
.
arange
(
cumulative_values
.
size
,
dtype
=
np
.
float32
)
fraction_of_examples
=
(
np
.
arange
(
cumulative_values
.
size
,
dtype
=
np
.
float32
)
/
cumulative_values
.
size
)
/
cumulative_values
.
size
)
fig
=
plt
.
figure
(
frameon
=
False
)
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
.
plot
(
fraction_of_examples
,
cumulative_values
)
ax
.
set_ylabel
(
'cumulative normalized values'
)
ax
.
set_ylabel
(
'cumulative normalized values'
)
ax
.
set_xlabel
(
'fraction of examples'
)
ax
.
set_xlabel
(
'fraction of examples'
)
...
@@ -1321,7 +1321,7 @@ def add_hist_image_summary(values, bins, name):
...
@@ -1321,7 +1321,7 @@ def add_hist_image_summary(values, bins, name):
def
hist_plot
(
values
,
bins
):
def
hist_plot
(
values
,
bins
):
"""Numpy function to plot hist."""
"""Numpy function to plot hist."""
fig
=
plt
.
figure
(
frameon
=
False
)
fig
=
plt
.
figure
(
frameon
=
False
)
ax
=
fig
.
add_subplot
(
'111'
)
ax
=
fig
.
add_subplot
(
1
,
1
,
1
)
y
,
x
=
np
.
histogram
(
values
,
bins
=
bins
)
y
,
x
=
np
.
histogram
(
values
,
bins
=
bins
)
ax
.
plot
(
x
[:
-
1
],
y
)
ax
.
plot
(
x
[:
-
1
],
y
)
ax
.
set_ylabel
(
'count'
)
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