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
f5f1e12a
Commit
f5f1e12a
authored
Dec 13, 2017
by
Alexander Gorban
Browse files
[Attention OCR]: Address review comment.
Use temp variable for predictions.
parent
89e19ed2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
research/attention_ocr/python/demo_inference.py
research/attention_ocr/python/demo_inference.py
+3
-2
No files found.
research/attention_ocr/python/demo_inference.py
View file @
f5f1e12a
...
...
@@ -86,8 +86,9 @@ def run(checkpoint, batch_size, dataset_name, image_path_pattern):
def
main
(
_
):
print
(
"Predicted strings:"
)
for
line
in
run
(
FLAGS
.
checkpoint
,
FLAGS
.
batch_size
,
FLAGS
.
dataset_name
,
FLAGS
.
image_path_pattern
):
predictions
=
run
(
FLAGS
.
checkpoint
,
FLAGS
.
batch_size
,
FLAGS
.
dataset_name
,
FLAGS
.
image_path_pattern
)
for
line
in
predictions
:
print
(
line
)
...
...
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