Upload trees.json
Browse files- trees.json +7 -0
trees.json
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import json
|
2 |
+
|
3 |
+
# simple example
|
4 |
+
id2label = {1: 'tree0', 2: 'tree1', 3:'tree3' }
|
5 |
+
|
6 |
+
with open('trees_id2label.json', 'w') as fp:
|
7 |
+
json.dump(id2label, fp)
|