Skip to content

Instantly share code, notes, and snippets.

@obeshor
Created June 25, 2019 22:32
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 obeshor/7c7c2c22efd5003c533f548ef161129c to your computer and use it in GitHub Desktop.
Save obeshor/7c7c2c22efd5003c533f548ef161129c to your computer and use it in GitHub Desktop.
Label mapping
!wget https://github.com/obeshor/Plant-Diseases-Detector/archive/master.zip
!unzip master.zip;
import json
with open('Plant-Diseases-Detector-master/categories.json', 'r') as f:
cat_to_name = json.load(f)
classes = list(cat_to_name.values())
print (classes)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment