Commit 5c771ea9 authored by Allen Lavoie's avatar Allen Lavoie
Browse files

Merge remote-tracking branch 'myrepo/master'

parents 44bdf29f 504bc193
......@@ -322,7 +322,7 @@ bazel-bin/im2txt/run_inference \
Example output:
```shell
```
Captions for image COCO_val2014_000000224477.jpg:
0) a man riding a wave on top of a surfboard . (p=0.040413)
1) a person riding a surf board on a wave (p=0.017452)
......
......@@ -28,9 +28,6 @@ import tensorflow as tf
def _read_words(filename):
with tf.gfile.GFile(filename, "r") as f:
if sys.version_info[0] >= 3:
return f.read().replace("\n", "<eos>").split()
else:
return f.read().decode("utf-8").replace("\n", "<eos>").split()
......
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