Update README.md
Browse files
README.md
CHANGED
@@ -11,6 +11,7 @@ Current datasets include:
|
|
11 |
- RVL-CDIP
|
12 |
- PASCAL VOC
|
13 |
- Kinetics-400
|
|
|
14 |
|
15 |
You can read in a label file as follows (using the `huggingface_hub` library):
|
16 |
|
@@ -18,7 +19,7 @@ You can read in a label file as follows (using the `huggingface_hub` library):
|
|
18 |
from huggingface_hub import hf_hub_download
|
19 |
import json
|
20 |
|
21 |
-
repo_id = "
|
22 |
filename = "imagenet-22k-id2label.json"
|
23 |
id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))
|
24 |
id2label = {int(k):v for k,v in id2label.items()}
|
|
|
11 |
- RVL-CDIP
|
12 |
- PASCAL VOC
|
13 |
- Kinetics-400
|
14 |
+
- ...
|
15 |
|
16 |
You can read in a label file as follows (using the `huggingface_hub` library):
|
17 |
|
|
|
19 |
from huggingface_hub import hf_hub_download
|
20 |
import json
|
21 |
|
22 |
+
repo_id = "huggingface/label-files"
|
23 |
filename = "imagenet-22k-id2label.json"
|
24 |
id2label = json.load(open(hf_hub_download(repo_id, filename, repo_type="dataset"), "r"))
|
25 |
id2label = {int(k):v for k,v in id2label.items()}
|