Upload movingthings.py
Browse files- movingthings.py +2 -2
movingthings.py
CHANGED
@@ -40,7 +40,7 @@ class Beans(datasets.GeneratorBasedBuilder):
|
|
40 |
description=_DESCRIPTION,
|
41 |
features=datasets.Features(
|
42 |
{
|
43 |
-
"
|
44 |
"image": datasets.Image(),
|
45 |
"labels": datasets.features.ClassLabel(names=_NAMES),
|
46 |
}
|
@@ -79,7 +79,7 @@ class Beans(datasets.GeneratorBasedBuilder):
|
|
79 |
file_name = os.path.basename(path)
|
80 |
if file_name.endswith(".jpg"):
|
81 |
yield i, {
|
82 |
-
"
|
83 |
"image": path,
|
84 |
"labels": os.path.basename(os.path.dirname(path)).lower(),
|
85 |
}
|
|
|
40 |
description=_DESCRIPTION,
|
41 |
features=datasets.Features(
|
42 |
{
|
43 |
+
"text": datasets.Value("string"),
|
44 |
"image": datasets.Image(),
|
45 |
"labels": datasets.features.ClassLabel(names=_NAMES),
|
46 |
}
|
|
|
79 |
file_name = os.path.basename(path)
|
80 |
if file_name.endswith(".jpg"):
|
81 |
yield i, {
|
82 |
+
"text": path,
|
83 |
"image": path,
|
84 |
"labels": os.path.basename(os.path.dirname(path)).lower(),
|
85 |
}
|