shrinusn77 commited on
Commit
761722d
·
verified ·
1 Parent(s): 6740d5c

Delete imagenet_classes.json

Browse files
Files changed (1) hide show
  1. imagenet_classes.json +0 -12
imagenet_classes.json DELETED
@@ -1,12 +0,0 @@
1
- import json
2
-
3
- # Download from official repo
4
- !wget -q https://raw.githubusercontent.com/pytorch/hub/master/imagenet_classes.txt
5
-
6
- with open("imagenet_classes.txt") as f:
7
- classes = f.read().splitlines()
8
-
9
- mapping = {str(i): classes[i] for i in range(len(classes))}
10
-
11
- with open("imagenet_classes.json", "w") as f:
12
- json.dump(mapping, f)