Skip to content

Instantly share code, notes, and snippets.

@liuliu
Last active January 3, 2016 02:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save liuliu/8393516 to your computer and use it in GitHub Desktop.
Save liuliu/8393516 to your computer and use it in GitHub Desktop.
#!/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