Switching back.
Browse files- bird-data.py +1 -4
bird-data.py
CHANGED
@@ -31,20 +31,17 @@ _URLS = {
|
|
31 |
"test": f"{_REPO}/data/test.zip",
|
32 |
}
|
33 |
|
34 |
-
_CLASSES_URL = f"{_REPO}/classes.txt"
|
35 |
-
|
36 |
class Beans(datasets.GeneratorBasedBuilder):
|
37 |
"""Beans plant leaf images dataset."""
|
38 |
|
39 |
def _info(self):
|
40 |
-
names_file = dl_manager.download(_CLASSES_URL)
|
41 |
return datasets.DatasetInfo(
|
42 |
description=_DESCRIPTION,
|
43 |
features=datasets.Features(
|
44 |
{
|
45 |
"image_file_path": datasets.Value("string"),
|
46 |
"image": datasets.Image(),
|
47 |
-
"labels": datasets.features.ClassLabel(names_file=
|
48 |
}
|
49 |
),
|
50 |
supervised_keys=("image", "labels"),
|
|
|
31 |
"test": f"{_REPO}/data/test.zip",
|
32 |
}
|
33 |
|
|
|
|
|
34 |
class Beans(datasets.GeneratorBasedBuilder):
|
35 |
"""Beans plant leaf images dataset."""
|
36 |
|
37 |
def _info(self):
|
|
|
38 |
return datasets.DatasetInfo(
|
39 |
description=_DESCRIPTION,
|
40 |
features=datasets.Features(
|
41 |
{
|
42 |
"image_file_path": datasets.Value("string"),
|
43 |
"image": datasets.Image(),
|
44 |
+
"labels": datasets.features.ClassLabel(names_file="classes.txt"),
|
45 |
}
|
46 |
),
|
47 |
supervised_keys=("image", "labels"),
|