Skip to content

Instantly share code, notes, and snippets.

@joelouismarino
Created July 30, 2017 04:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save joelouismarino/cd0fde1650ec0e9169771cbbd2bfd27e to your computer and use it in GitHub Desktop.
Save joelouismarino/cd0fde1650ec0e9169771cbbd2bfd27e to your computer and use it in GitHub Desktop.
labels_file = caffe_root + 'data/ilsvrc12/synset_words.txt'
labels = np.loadtxt(labels_file, str, delimiter='\t')
caffe_top_inds = caffe_act[0].argsort()[::-1][:5]
zip(caffe_act[0][caffe_top_inds], labels[caffe_top_inds])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment