karpathy / neuraltalk2

Efficient Image Captioning code in Torch, runs on GPU
5.49k stars 1.26k forks source link

coco_preprocess.ipynb: print val.keys() ^ SyntaxError: invalid syntax #193

Closed parseb closed 6 years ago

parseb commented 6 years ago

`Python 3.6.1 |Anaconda custom (64-bit)| (default, May 11 2017, 13:09:58) Type 'copyright', 'credits' or 'license' for more information IPython 6.1.0 -- An enhanced Interactive Python. Type '?' for help.

In [3]: run coco_preprocess.ipynb --2018-03-22 13:05:00-- http://msvocds.blob.core.windows.net/annotations-1-0-3/captions_train-val2014.zip Resolving msvocds.blob.core.windows.net (msvocds.blob.core.windows.net)... 52.176.224.96 Connecting to msvocds.blob.core.windows.net (msvocds.blob.core.windows.net)|52.176.224.96|:80... connected. HTTP request sent, awaiting response... 200 OK Length: 19673183 (19M) [application/octet-stream Charset=UTF-8] Saving to: ‘captions_train-val2014.zip’

captions_train-val2 100%[===================>] 18,76M 524KB/s in 37s

2018-03-22 13:05:38 (518 KB/s) - ‘captions_train-val2014.zip’ saved [19673183/19673183]

Archive: captions_train-val2014.zip inflating: annotations/captions_train2014.json
inflating: annotations/captions_val2014.json
File "", line 1 print val.keys() ^ SyntaxError: invalid syntax ` I am downloading the dataset from COCO website. Will I get the same error?

parseb commented 6 years ago

Python3 synthax: print()