"...git@developer.sourcefind.cn:OpenDAS/megatron-lm.git" did not exist on "3bec6514156f492e0dca171251d6d928842a3e89"
Commit f5f1e12a authored by Alexander Gorban's avatar Alexander Gorban
Browse files

[Attention OCR]: Address review comment.

Use temp variable for predictions.
parent 89e19ed2
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment