Create a gist now

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/usr/bin/env ruby
meta = File.new "ILSVRC2010_test_ground_truth.txt"
ids = Array.new
i = 0
meta.each_line do |line|
ids << line.to_i
print ids[i].to_s + " test/ILSVRC2010_test_00" + ("%06d" % [i + 1]) + ".JPEG\n"
i = i + 1
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment