Rivoks commited on
Commit
9c0f414
·
1 Parent(s): 741fdee

Upload movingthings.py

Browse files
Files changed (1) hide show
  1. movingthings.py +2 -2
movingthings.py CHANGED
@@ -40,7 +40,7 @@ class Beans(datasets.GeneratorBasedBuilder):
40
  description=_DESCRIPTION,
41
  features=datasets.Features(
42
  {
43
- "image_file_path": datasets.Value("string"),
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
- "image_file_path": path,
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
  }