Skip to content

Instantly share code, notes, and snippets.

@venuktan
Created November 17, 2017 15:32
Show Gist options
  • Save venuktan/e2af6f3b8e5ef1526e02c83ce990ea1d to your computer and use it in GitHub Desktop.
Save venuktan/e2af6f3b8e5ef1526e02c83ce990ea1d to your computer and use it in GitHub Desktop.
import requests
import ast
url="https://gist.githubusercontent.com/yrevar/942d3a0ac09ec9e5eb3a/raw/c2c91c8e767d04621020c30ed31192724b863041/imagenet1000_clsid_to_human.txt"
data=requests.get(url).text
class_num_label = ast.literal_eval(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment