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
d50d2117
".github/git@developer.sourcefind.cn:wangsen/mineru.git" did not exist on "a99c9b8977bd80b9cf1a9989a0a162bffde03a24"
Commit
d50d2117
authored
Dec 28, 2016
by
David E. Weekly
Browse files
Fix deprecated call to tf.image_summary to tf.summary.image
parent
16da0022
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
im2txt/im2txt/ops/image_processing.py
im2txt/im2txt/ops/image_processing.py
+1
-1
No files found.
im2txt/im2txt/ops/image_processing.py
View file @
d50d2117
...
@@ -92,7 +92,7 @@ def process_image(encoded_image,
...
@@ -92,7 +92,7 @@ def process_image(encoded_image,
# only logged in thread 0.
# only logged in thread 0.
def
image_summary
(
name
,
image
):
def
image_summary
(
name
,
image
):
if
not
thread_id
:
if
not
thread_id
:
tf
.
image_
summary
(
name
,
tf
.
expand_dims
(
image
,
0
))
tf
.
summary
.
image
(
name
,
tf
.
expand_dims
(
image
,
0
))
# Decode image into a float32 Tensor of shape [?, ?, 3] with values in [0, 1).
# Decode image into a float32 Tensor of shape [?, ?, 3] with values in [0, 1).
with
tf
.
name_scope
(
"decode"
,
values
=
[
encoded_image
]):
with
tf
.
name_scope
(
"decode"
,
values
=
[
encoded_image
]):
...
...
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