Datasets:
Update tempofunk.py
Browse files- tempofunk.py +16 -2
tempofunk.py
CHANGED
@@ -15,6 +15,19 @@ _TAR_FILES=[
|
|
15 |
"data/00009.tar",
|
16 |
]
|
17 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
class Food101(datasets.GeneratorBasedBuilder):
|
19 |
"""Food-101 Images dataset."""
|
20 |
|
@@ -29,8 +42,9 @@ class Food101(datasets.GeneratorBasedBuilder):
|
|
29 |
def _split_generators(self, dl_manager):
|
30 |
|
31 |
l=[]
|
32 |
-
|
33 |
-
|
|
|
34 |
l.append(
|
35 |
datasets.SplitGenerator(
|
36 |
name=k,
|
|
|
15 |
"data/00009.tar",
|
16 |
]
|
17 |
|
18 |
+
_TAR_FILES_DICT={
|
19 |
+
"00000": "data/00000.tar",
|
20 |
+
"00001": "data/00001.tar",
|
21 |
+
"00002": "data/00002.tar",
|
22 |
+
"00003": "data/00003.tar",
|
23 |
+
"00004": "data/00004.tar",
|
24 |
+
"00005": "data/00005.tar",
|
25 |
+
"00006": "data/00006.tar",
|
26 |
+
"00007": "data/00007.tar",
|
27 |
+
"00008": "data/00008.tar",
|
28 |
+
"00009": "data/00009.tar",
|
29 |
+
}
|
30 |
+
|
31 |
class Food101(datasets.GeneratorBasedBuilder):
|
32 |
"""Food-101 Images dataset."""
|
33 |
|
|
|
42 |
def _split_generators(self, dl_manager):
|
43 |
|
44 |
l=[]
|
45 |
+
|
46 |
+
for k in _TAR_FILES_DICT.keys():
|
47 |
+
archive_path = dl_manager.download(_TAR_FILES_DICT[k])
|
48 |
l.append(
|
49 |
datasets.SplitGenerator(
|
50 |
name=k,
|