luarocks install dkjson
Place instances_train-val2014.zip in the same folder. You can download it from http://mscoco.org/dataset/#download
Then run the following commands:
unzip instances_train-val2014.zip
th load.lua
th load.lua ### yes, run it twice.
Then you will have a file called instances_train2014.tds.t7
that you can load via:
annotations = torch.load('instances_train2014.tds.t7')
for k,v in pairs(annotations) do
print(k)
end